Build ERD
Build ERD
You are required to build the ERD to manage some staffs and tasks. Each staff is managed by the
manager. The staff includes information: Staff ID, name, gender, basic salary, bonus salary (if the staff is
a manager, he/she will be paid a bonus salary). Each task is performed by one or many staffs. This
system need to record working hours of each staff per a task. Information of task includes: id, title,
begin date, end date, total hours.
Exercise 2:
You are required to build the ERD for a health hospital. This diagram is used to manage some owners,
some pets and services. The owner includes information: ID, name, address. Each owner has one or
many pets. Information of pet includes: id, name, birthday, gender. When a pet uses any services the
system needs to record them to charge money. Each service contains: Id, name, price
Exercise 3:
Build a ERD to manage students and courses of FPTU. Each student includes: id, name, address, gender.
A student can enroll in some courses. Each course contains: code, name, credits. Addition, each student
belongs to the campus. Each campus includes: code, name, address.
Exercise 4:
1. Build a ERD to manager Customers, Items, Orders, invoices. Each Item: id, name, price, status
( 1: đã bán, 0: chưa bán). Customer includes: id, name, address. Order contains: id, orderDate,
shipDate, TotalOfQuantity. Each customer has one or many orders and an order belongs to the
customer. Each Order has only one invoice.
2. Build logical diagram from 1
3. Write a query to get all customers
4. Write a query to get all customers that live in HCM
* The above specifications are only basic information; you must build the application according to real
requirements.