Draw an entity relationship diagram (ERD) in Unified Modelling Language (UML) notation according to these business rules.
Project ACME Green – Business Rules
1. A single
2. All tables in the database must have surrogate primary keys.
3. Each company has a name and consists of one or more departments.
4. Each company has one employee that is the CEO of the company. That employee may only
be the CEO of one company, and not all employees are CEOs.
5. Each department must have exactly one employee who is the Green Champion – the
person responsible for any initiatives related to the carbon footprint of the department. That employee may only be the Green Champion for a single department, and not all employees are Green Champions.
6. The following data must be recorded for each employee: name and surname.
7. Some departments have products that they are responsible for. Each product must be
allocated to exactly one department and must have a description.
8. The main purpose of the database is to record carbon transactions. Each carbon
transaction is accounted for by exactly one department. Optionally, the single product
that the carbon transaction relates to can also be recorded.
9. The following data must be recorded for each carbon transaction: date and value.
Draw an entity relationship diagram (ERD) in Unified Modelling Language (UML) notation according to these business rules.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images