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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started