Lab Chapter # 5
Lab Chapter # 5
Total Marks: 10
Lab exercises You need to be present in the class for your lab to be graded and are to be
submitted within 3 Hours after the class, failing to do the will result in ZERO grade.
Hands-On Assignments
1. Add a new row in the ORDERS table with the following data: Order# = 1021,
Customer# =1009, and Order date = July 20, 2009.
INSERT INTO ORDERS (Order#, Customer#, Orderdate)
VALUES (1021, 1009, '20-JUL-09');
4. Add a new row in the ORDERS table with the following data: Order# = 1022,
Customer# = 2000, and Order date = August 6, 2009. Describe the error
raised and what caused the error.
INSERT INTO ORDERS (Order#, Customer#, Orderdate)
VALUES (1022, 2000, '06-AUG-05');
Foreign key error due to customer 2000 not existing in customers table
5. Add a new row in the ORDERS table with the following data: Order# = 1023
and Customer# = 1009. Describe the error raised and what caused the
error.
INSERT INTO ORDERS (Order#, Customer#, Orderdate)
VALUES (1023, 1009);