Question: Write the data definition statements of SQL that modify the structures of a database listed on a page 4 of the examination paper in the
Write the data definition statements of SQL that modify the structures of a database listed on a page of the
examination paper in the way described below. Note, that some of the modification may require more than
one data definition statements of SQL statement.
Add a foreign key constraint in the database that a department manager is an employee.
marks
Add a check constraint in the database that the value of the attribute Sex is either M or F
marks
It is possible that the salary of an employee can be up to $
marks
In the future information about a department manager will be optional.
marks
We would like to store information in the database about the percentage of an employee works on a
project. The value of a percentage is between and For example, means and means
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
