Ass
Ass
Ass
TYPE: n/a
LOC: n/a
Problem Description:
In the database design for the Employee Management System of FSOFT Company, given
tables of the application with below:
EMPLOYEE:
EMP_SKILL:
SkillLevel: skill level of the employee (accepts value range from 1 to 3 only).
SKILL:
DEPARTMENT:
Questions to answer:
Q1:
Create a SKILL table with the most appropriate/economic field/column constraints &
types, all fields are mandatory except Note field.
Q2:
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.
Modify EMPLOYEE table to set default values to 0 of MgrNo and Status fields.
Q3:
Add the FOREIGN KEY constrain of DeptNo field to the EMPLOYEE table that will
relate the DEPARTMENT table.
Q4:
Create a VIEW called EMPLOYEE_TRACKING that will appear to the user as EmpNo,
Emp_Name and Level. It has Level satisfied the criteria: Level >=3 and Level <= 5.
-- THE END --