Class Exercise Database Design
Class Exercise Database Design
Class Exercise Database Design
Semester 1/2020
I understand that breaking any rules above will zero marks in this exam
Signature: Nutsongwat Cheawka (Please sign your name here)
Q1. What is the business process that has been assigned to you? You may find this answer in your
own quiz question. You cannot pick your own business process. If you are working on the wrong
business process, the rest of your answer will not be graded.
Answer: The registration process for a meeting/conference.
Q2. Please provided at least 5 business rules based on the given business process in Q1.
Answer:
1. Each user account can enroll only one meeting room. Each meeting room can be enrolled
by many user accounts. (1, M)
2. One user account must have only one profile. One profile is created by only one user
account. (1, 1)
3. Each organizer can provide to many meeting rooms. Each meeting room can be created by
many organizers. (M, N)
4. Each user account can contact to many organizers. Each organizer can be contacted many
user accounts. (M, N)
5. Each staff must check status of user account that join meeting rooms. Status are checked
by many staffs. (M, N)
6. Each meeting room must be stationed at least one staff. Each staff can be at least one
meeting room. (M, N)
7. Each user account must have just only one status. A status just has only one user account.
(1, 1)
ITCS241 Database Management Systems
Semester 1/2020
Q3. According to your business rules in Q2, please design the ER diagram (ERD). The ERD must
contain at least 4 entities with at least 5 attributes in each entity. You must indicate all the
constraints in the diagram (connectivity, cardinality, and participation constraints).
Answer:
Q4. Using schema mapping technique to transform ERD in Q3 into Relational Schema. Please show
step-by-step transformation (8 steps) and the final relational schema. You must indicate the
primary key in the schema using underline, and the foreign key with the link between relations.
Answer:
User account
username password email name_ac city country province
ITCS241 Database Management Systems
Semester 1/2020
Status
time_date type_status
Organizer
phone_number email firstname_og lastname_og position_org
Staff
id_staff firstname_s lastname_s phone_number
Meeting room
room_name room_id amount_people start_date due_date
Profile
firstname lastname phone_number address birth_of_date username
Status
time_date type_status username
Meeting room
room_name room_id amount_people start_date due_date username
Check
Type_status Id_staff
Be stationed.
Id_staff Room_id
Organizer
Name_og Room_id
Profile_photo
Pro_name photo
Staff_photo
Id_ staff photo
ITCS241 Database Management Systems
Semester 1/2020
User account
username password email name_ac city country province
Profile
firstname lastname phone_number address birth_of_date username
Status
time_date type_status username
Meeting room
room_name room_id amount_people start_date due_date username
Organizer
phone_number email firstname_og lastname_og position_org
Staff
id_staff firstname_s lastname_s phone_number
Check
Type_status Id_staff
Be stationed.
Id_staff Room_id
Organizer
Name_og Room_id
Profile_photo
Pro_name photo
Staff_photo
Id_ staff photo