Question: Question 3 Write the DML codes to create each of the tables shown above [4 Marks] Write the DDL codes to insert the data into
Question 3
- Write the DML codes to create each of the tables shown above [4 Marks]
- Write the DDL codes to insert the data into the tables as shown above. [4 Marks]
c) Identify the Superkeys for staff relation. [5 Marks]
d) Based on the tables of the above given schema, write SQL integrity enhancement features for the following constraints:
- bookID in Borrow must be the one that exist as code in Book .
- Salary must be an integer value above 0.
- joinedDate is not present or future dates. [12 Marks]
Answer the code show studio management the output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
