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

  1. Write the DML codes to create each of the tables shown above [4 Marks]

  1. 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:

  1. bookID in Borrow must be the one that exist as code in Book .
  2. Salary must be an integer value above 0.
  3. 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

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!