SQL - Assignment
SQL - Assignment
In the database design for the Employee Management System of ABC Company, given
tables of the application with below:
EMPLOYEE:
EMP_SKILL:
SKILL:
DEPARTMENT:
Question 1:
Question 2:
a) Add an Email field to EMPLOYEE table and make sure that the database will not
allow the value for Email to be inserted into a new row if that value has already been
used in another row.
b) Modify EMPLOYEE table to set default values to 0 of MgrNo and Status fields.
Question 3:
a) Add the FOREIGN KEY constrain of DeptNo field to the EMPLOYEE table that will
relate the DEPARTMENT table.
b) Remove the Description field from the EMP_SKILL table.
Question 4: