Professional Documents
Culture Documents
CM1603 Final
CM1603 Final
Data Science
RGU Student ID :
List of Figures
Figure 1 EERD diagram.................................................................................................................................................2
Figure 2 Logical Schema Diagram.................................................................................................................................6
Figure 3 Creation of Job table........................................................................................................................................9
List of tables
Table 1 Identified Entities and Attributes.......................................................................................................................4
Table 2 Relationship with Multiplication Constraints....................................................................................................5
Individuals’ customers have personal information such as first name, last name, email, occupation.
Company customers have attributes like company name, company registration number.
Relationship Description
Customer and Project There is a one-to-many relationship between customer and project indicating that
one customer can contain multiple projects and one project including one
customer.
Customer and payment There is a one-to-many relationship between customer and payment indicating
that one customer can make multiple payments and one payment has one
customer
Supervisor and Staff There is a one-to-many relationship between supervisors and staff members
indicating that one supervisor can oversee one or more staff members and it is
optional for staff members to have supervisors
Job and Staff There is a one-to-many relationship between jobs and staff members indicating
that one job can contain multiple staff members and each staff member includes
one job
Staff and duty assignments There is a one-to-many relationship between staff members and duty assignments
indicating that staff members can assign one or more duties and duty assignments
including one staff member
Duty assignments and project There is a many-to-many relationship between duty assignments and projects
indicating that duty assignments allocated to one or more projects and projects
have one or more duty assignments
Staff and Project There is a many-to- many relationship between staff and projects indicating that
staff works with one or more projects and projects have minimum one and
maximum many staffs
Table 2 Relationship with Multiplication Constraints
Section 2
Tharusha Liyanagama CM1603 Database Systems Page 5 of 14
2.0 Logical Schema Diagram
2.1 Assumptions