0% found this document useful (0 votes)
39 views2 pages

Build ERD

The document outlines 5 exercises to build entity relationship diagrams (ERDs) for different scenarios: 1) managing staff and tasks, 2) managing owners, pets and vet services at a hospital, 3) managing students and courses at a university, 4) managing customers, items, orders and invoices, 5) building a database for an online car rental system.

Uploaded by

loanhtnss181363
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

Build ERD

The document outlines 5 exercises to build entity relationship diagrams (ERDs) for different scenarios: 1) managing staff and tasks, 2) managing owners, pets and vet services at a hospital, 3) managing students and courses at a university, 4) managing customers, items, orders and invoices, 5) building a database for an online car rental system.

Uploaded by

loanhtnss181363
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Exercise 1:

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

Exercise 5: Build a database for this problem.


Title: Car rental
Background: Build a website for Car rental.
Program Specifications:
Car rental is a service online. In the store there are many types of cars, users can choose to rent one or
many cars for a certain period of time. In addition, users can rent more than 1 car of the same type or
different type.
Features:
This system contains the following functions:
- Function 1: Login
In order to shopping, an authentication is required. o If the user has not authenticated, the system
redirects to the login page. o The actor enters userID and password, the function checks if the userID
with the password is in the available user list, then grant the access permission. If not, a message would
appear no notify that user is not found. o Must integrated login using Google reCAPTCHA service. o
Login function is required to shopping.
- Function 2: Car Search
List first 20 available items in the system order by date: car name, color, year, category, price, quantity.
Paging is required to use.
Each car has different price.
User can find the car based on car name or car category and rental date and return date and amount of
car. o All users can use this function (login is not required)
- Function 3: Create new account
Register new user: email as ID, phone, name, address, create date.
Create date is current date.
The default status of new user is New.
You need verify the email address of the user before changing the status of new user to Active. - -
Function 4: Renting
All users can use this function excepting admin role (login is required)
Add the selected car to cart.
Each user can rent any available car in the list. o User can view the selected car in the cart. For each car:
car name, car type, amount, price, total. The screen must show the total amount of money of this cart.
User can remove the car from the cart. The confirm message will show before delete action.
User can update amount of each car in cart.
Click the Confirm button to store the order to database (must store order date). The warning message
will show if the selected car is out of stock.
During booking user enter the discount code (if any). Each discount code has its expiry date.
- Function 5: Order history
User can take over the order history: list of order sort by booking date.
Support search function: search by name or order date
Support delete function to delete the order (update the status of order to inactivate).
- Function 6: Feedback on the quality of car service
The user sends a feedback to the quality of the car he has rented.
Rating on a scale of: from 0 to 10

* The above specifications are only basic information; you must build the application according to real
requirements.

You might also like