ITS62904 Practical Test MARCH2023
ITS62904 Practical Test MARCH2023
DEGREE PROGRAMMES
ASSESSMENT 2
PRACTICAL TEST
WEIGTHAGE 20%
MARCH 2023
Instructions
1) This paper consists of questions worth 50 marks. There are 2 questions in total.
2) Draw the model in Draw.io and copy paste your diagram here in this answer
booklet.
4) Once completed, save it with your name and submit in the submission link
provided in your Times. Any delay in submission will cause marks capped.
5) You don’t have to convert into PDF. Word document submission is sufficient.
Question 1 (30 marks)
The Go-Green e-shop would like to hold a sale. It encourages its users (customers and merchants)
to participate in the sale of items. You are required to design an ERD or EERD based on the given
requirements. Consider to identify the entities, week entities, relationships, primary key and
attributes for each entity and ensure to resolve relationships identified.
A user in the system is either a merchant, or a customer, but not both. (2 marks)
For every customer, the database records a unique id, name, city, credit card number. (3 marks)
For each merchant, the database records a unique id, name, city, account number, and a phone
number list with arbitrary size. (3 marks)
The e-Shop can distribute only up to 10 different products from each merchant. (2 marks)
The same product cannot be sold by two different merchants via the e-Shop. (2 marks)
A merchant may impose additional handling fees on an item. Each handing fee has a handling
rate and a description. Handling rate is unique within each item. Each handling fee is associated
with exactly one product, whereas many handling fees can be associated with the same item. (5
marks)
A customer can make purchase orders through the e-Shop. Each purchase order has a purchase
id, time, and date. Each purchase order can consist of an arbitrary number of products. For each
product in a purchase order, the purchase quantity is recorded.
(5 marks)
Consider the relational schema given in Figure 1. Read the description, and write the SQL
statement to answer the questions.