0% found this document useful (0 votes)
10 views

Assignment 1

The document outlines the requirements for Assignment 1 of the IIMT3601 Database Management course at HKU Business School, due on February 28, 2024. Students are instructed to create ER models for three different scenarios, ensuring to include cardinalities and any assumptions made. Submissions must be made in MS Word or PDF format through Moodle, with specific guidelines on naming and penalties for late submissions.

Uploaded by

Karen W
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Assignment 1

The document outlines the requirements for Assignment 1 of the IIMT3601 Database Management course at HKU Business School, due on February 28, 2024. Students are instructed to create ER models for three different scenarios, ensuring to include cardinalities and any assumptions made. Submissions must be made in MS Word or PDF format through Moodle, with specific guidelines on naming and penalties for late submissions.

Uploaded by

Karen W
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HKU Business School

IIMT3601 Database Management


Assignment 1 (Due: February 28, 2024, Wednesday, 11:59pm)

Please draw the ER model for each of the following situations. You may draw it using software
such as the simple Draw tool in Microsoft Word, PowerPoint, Visio, SmartDraw, or any other
CASE/drawing tools you like. DO NOT submit hand-drawn diagrams. Remember to include
minimum and maximum cardinalities in the diagram whenever appropriate. State any
assumptions you made when creating the models.

1. The following figure shows a Seasonal Sales Report that is sent to sale persons at the end
of one season for performance evaluation. Prepare an ER model reflecting the data
contained in the Seasonal Sales Report.

2. A bar has three types of drinks: soda, alcohol, and water. There are also two types of
water: sparkling water and still water. Following are the attributes for each type of
account:
 SODA: Item_No, Date_Expired, Brand
 ALCOHOL: Item_No, Date_Expired, Brand, Alcohol by volume
 WATER: Item_No, Date_Expired, Brand, Place of Origin

Assume that:
 Each drink sold in the bar can belong to one or more of these subtypes.
 Only Alcohol drinks require customer information. Each alcohol drink can only belong
to one customer, while one customer can order multiple alcohol drinks. A customer
is identified by Customer_ID and should include the following attributes:
Last_Name, First_Name, HKID/Passport_ID, and Phone_Number.

Using generalization, develop an ER model to represent this situation. Remember to


include a subtype discriminator.
3. You have been asked to develop a preliminary ER diagram for the final exams of
information systems courses. You discover the following entity types that should be
included:

 EXAM PERIOD: The period that all final exams are conducted. Identifier is the
start date, including Month, Day, and Year. Another attribute is the end date,
including Month, Day, and Year.
 EXAM: Identifier is the Exam_ID. Other attributes include Exam_date, which
consists of the following: Month, Day, Year, and Time; Exam_location, which
consists of the following: Building_Name, Room_Number, and Room_Capacity.
Each exam can have one or more Exam_location.
 COURSE: Courses that the exams are held for. Identifier is Course_ID. Course
has an attribute: Course_Name. Another attribute is Section, which includes
Section_Number, and Section_student_number. Many, but not all, courses have
multiple sections. A course can have many instructors.
 EXAM INVIGILATOR: people who will invigilate exams. Identifier is
Invigilator_ID. Another attribute is Invigilator_Name.
 STUDENT: students who will take the exam. Identifier is Student_ID. Other
attributes are Student_Name, Student_Major. Student can have more than one
major. Students can take multiple exams.
 INSTRUCTOR: instructors of courses. Instructor is identified by instructor_ID.
Other attrtibutes are Instructor_Name, Instructor_Gender, Instructor_Title,
Instructor_Major. Instructor can have more than one title and can teach multiple
courses. Instructor can only have one major.

During further discussions you discover the following:


 An exam period schedules one or more exams. A particular exam is scheduled for
only one exam period.
 A course can schedule no or multiple exams, while one specific exam can only be
assigned to one course.
 Each exam can have one or more invigilators, and one invigilator can invigilate
one or more exams.
 Each exam needs one or more students to take, and a student can take one or more
exams.

Draw an ER diagram to represent what you have discovered.

Please submit your answers as a MS Word or PDF file through Moodle (moodle.hku.hk) before
the deadline. Please use your student ID to name your file (e.g., 3035xxxxxx.pdf). Put your name
and university number inside your document. This is an individual assignment, so please make
sure you work on it yourself and do not share your work with others. If your submission is late
for 24 hours or less, 20% will be deducted. If your submission is late for more than 24 hours, no
credit will be given.

You might also like