Question: use oracle sql command line with found or notfound method --- with table Customer(customerNo,costomerName ,gender) Employee (employeeNo,employeeName,job) ,branch(No,Name), category(catNo,catogeryName) -- with trigger like this one

use oracle sql command line with found or notfound method
---
with table
Customer(customerNo,costomerName
,gender)
Employee (employeeNo,employeeName,job) ,branch(No,Name),
category(catNo,catogeryName)
--
with trigger like this one it may has some errors
--
create or replace
trigger increment_id
before insert on table_name
for each row
Begin
select max(table_id)+1 into :new.table_id from table_name;
End ;
--
 use oracle sql command line with found or notfound method ---

4) Create database package pointOfSal which contain the following A. procedure to add new customer which use validation method checkExistingCustomer using cursor to validate customer name if its not exists before, then add this new customer and generate the customer number automatically using database trigger. B. Method to add new Employee which use validation method checkExistingEmployee using cursor to validate Employee name if its not exists before, then add this Employee and generate the Employee number automatically using database trigger. C. procedure to add new Category which use validation method checkExistingCategory using exception to validate category name if its not exists before, then add this category and generate the category number automatically using database trigger

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!