This document discusses using data definition language (DDL) statements to create and manage tables. It shows the DDL to create three tables: SUBJECTS with a primary key field of Subject_Id and title field with a not null constraint; SUBJ_TEACH with a primary key of ST_Id and foreign key fields referencing the SUBJECTS and TEACHERS tables; and TEACHERS with a primary key of Teacher_Id and first and last name fields with not null constraints.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
87 views1 page
Lab Exercise 10
This document discusses using data definition language (DDL) statements to create and manage tables. It shows the DDL to create three tables: SUBJECTS with a primary key field of Subject_Id and title field with a not null constraint; SUBJ_TEACH with a primary key of ST_Id and foreign key fields referencing the SUBJECTS and TEACHERS tables; and TEACHERS with a primary key of Teacher_Id and first and last name fields with not null constraints.