Advertisement
abrar1

Untitled

Dec 11th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. create or replace procedure insert_sale(c_id in NUMBER, imei in NUMBER, sell_date in DATE,e_id in number) is
  2.  
  3. BEGIN
  4. if sell_date is not null then
  5. INSERT INTO SALES(CUSTOMER_ID,PRODUCT_IMEI_NO,DATE_OF_SALE,EMPLOYEE_ID) values(c_id, imei, sell_date, e_id) ;
  6. else
  7. INSERT INTO SALES(CUSTOMER_ID,PRODUCT_IMEI_NO,EMPLOYEE_ID) values(c_id, imei, e_id) ;
  8. end if ;
  9. END;
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement