Professional Documents
Culture Documents
DB Lab 8
DB Lab 8
Learning objectives:
Learn to use PRIMARY KEY constraint.
Learn to use FOREIGN KEY constraint.
Learn to use AUTO INCREMENT field.
8.0 Preliminaries
DESCRIBE Customer;
Create a table “SaleOrder” with attributes of id, total amount and order date.
DESCRIBE SaleOrder;
Create a table “SaleOrder” with attributes of id, total amount and order date. Create primary key on
“sale order id” attribute.