Question: a) Write complete SQL statement to create 02 database tables, one as Master and the other as Slave table (of your own choice but other

a) Write complete SQL statement to create 02 database tables, one as Master and the other as Slave table (of your own choice but other than the demo tables studied in class) which must contain all the constraints which has to be user defined in nature.

b) Write SQL statements to enter records (Minimum 08 in Child and minimum 04 in Parent table) using DDL commands

c) Elaborate the importance of Foreign key and its relationship with Primary key with respect to the 02 tables you just created and moreover how the validation of data occurs through PK and FK.

d) By using the tables you have created elaborate all clauses in right order used in SQL by writing / using various appropriate DML, DDL and DQL statements wherever required.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!