Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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