Question
Solve this two E-R Diagram 1st ER-Diagram In a Coffee Shop Management System, a customer can order coffee from the menu. A Coffee can be
| |
1st ER-Diagram In a Coffee Shop Management System, a customer can order coffee from the menu. A Coffee can be ordered by one customer. A customer can have many Coffees. A customer is identified by the table number, the system also stores their name. A coffee is identified by the Coffee ID, coffee type, coffee price and roast level of the coffee, the system will also track the number of coffees ordered. Order is taken by staff. The coffee is then made by staff. A staff member can manage many customers, A customer can be managed by only one staff member. A staff member is identified by Staff ID and staff name. The system also stores the work hours and salary. A customer pays bills. A customer can pay many bills, but a bill can only be paid by one customer. A bill contains the bill number, total price and the payment method. The bill is taken by a staff member. While the bill is being taken the date is recorded. 2nd ER-Diagram Consider that you are hired by a software development company for designing their database. The company has several teams such as Development Team, Operations Team, Software Quality Assurance Team etc. Each of these teams may work on several projects. Also, it must be noted that a project may require the involvement of multiple teams. Furthermore, a project is always associated with one client. But a client may get associated with a number of projects. Finally, the company also has a number of employees each of whom works in only one team but she/he may work on several projects. The company now wishes to store the names of the teams, names of projects, estimated cost of the projects, names of clients, addresses of clients, phone numbers of clients, payments made by the clients so far for particular projects, names of employees, addresses of employees, phone numbers of employees, dates of birth of employees, dates of joining of employees and number of hours worked by the employees on particular projects. Construct a clean and concise ER diagram for the database that will be used to manage all the data needed by the company. You must indicate primary keys, multivalued attributes (if any) and cardinality mappings in your diagram. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started