Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use oracle sql command line with found or notfound method table customer(customerNo, customerName , gender) with trigger like this one it may has some errors
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 table customer(customerNo, customerName , gender)
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 ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started