Question: CONSTRAINT Employee _ FK 2 FOREIGN KEY ( DNumber ) REFERENCES DepartmentQUESTION 3 ( 1 0 marks ) Write the data definition statements of SQL
CONSTRAINT EmployeeFK FOREIGN KEY DNumber REFERENCES DepartmentQUESTION marks
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
Mor 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.
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
marks
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
