Reference no: EM133993362
Assignment:
Consider the following relations for a company Database Application:
Employee (Eno, Name, Sex, Dob, Doj, Designation, Basic_Pay, Dept_No)
Department (Dept No, Name)
Project (Proj No, Name, Dept_No)
Worksfor (Eno, Proj No, Date, Hours)
The attributes specified for each relation are self-explanatory. However the business rules are stated as follows.
A department can control a project. An employee can work on any number of projects on day. However an employee cannot work more than once on a project he/she worked on that day. The primary keys are underlined.
i. Identify the foreign keys.
ii. Write SQL statements to implement the above schema.