In: Computer Science
Company organized into DEPARTMENT. Each department has unique name and a particular employee who manages the department. Start date for the manager is recorded. Department may have several locations. A department controls a number of PROJECTS. Projects have a unique name, number and a single location. Company’s EMPLOYEE name, ssno, address, salary, sex and birth date are recorded. An employee is assigned to one department, but may work for several projects (not necessarily controlled by her dept). Number of hours/week an employee works on each project is recorded; the immediate supervisor for the employee. Employee’s DEPENDENT is tracked for health insurance purposes (dependent name, birthdates, relationship to employee). Construct an ER Diagram for Company having given details. Construct appropriate tables for the above ER Diagram
According to the question the entities are as follows:-
The relationship among entities are as follows:-
The ER diagram is as follows:-
The appropriate tables for the above ER diagram is as follows:-
In above relation schema primary keys are represented by italic and underline and foreign key by bold