Dbms 10 - 1007
Dbms 10 - 1007
1. Experiment Title: Design a case study for Company database/ Hospital Management System/
Railway Reservation System
3. ER Diagram:
UID: 21BCS5103
Case Study
This Company ER diagram illustrates key information about Company, including entities such as employee,
department, project and dependent. It allows us to understand the relationships between entities.
Entities and their Attributes are
• Employee Entity: Attributes of Employee Entity are Name, Id, Address, Gender, Dob and Doj. Id is
Primary Key for Employee Entity.
• Department Entity: Attributes of Department Entity are D_no, Name and Location. D_no is Primary
Key for Department Entity.
• Project Entity: Attributes of Project Entity are P_No, Name and Location. P_No is Primary Key for
Project Entity.
• Dependent Entity: Attributes of Dependent Entity are D_no, Gender and relationship.
Relationships are:
• Employees work in Departments –
Many employees works in one Department but one employee can not work in many departments.
• Manager controls a Department – employee works under the manager of the Department and the
manager records the date of joining of employee in the department.
• Department has many Projects –
One department has many projects but one project can not come under many departments.
• Employee works on project –
One employee works on several projects and the number of hours worked by the employee on a
single project is recorded.
• Employee has dependents –
Each Employee has dependents. Each dependent is dependent of only one employee.
UID: 21BCS5103