Class Exercise Database Design

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

ITCS241 Database Management Systems

Semester 1/2020

Take-home Midterm Exam


Time Duration: Wednesday 28 October 2020 from 12:00 to 23:59
Instructions:
• My Courses System will be used for both downloading and submitting the exam.
• You may use any offline and online materials including the internet search.
• The exam must be taken completely alone. This mean no discussion with other people.
• Showing or sharing the answers with anyone is forbidden.
• Failure to comply with any of the instructions above may result in our being unable to
accept or grade your exam.

I understand that breaking any rules above will zero marks in this exam
Signature: Nutsongwat Cheawka (Please sign your name here)

Name: Nutsongwat Cheawka (Please print your name here)


Section: 2 Student ID: 6288066

Information: This exam has four questions – total 17 points.

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:

Step 1: Transforming regular entitles.


Profile
firstname lastname phone_number address birth_of_date

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

Step 2: Transforming week entitles.


Step 3: Transforming binary 1:1 relationship type.

Profile
firstname lastname phone_number address birth_of_date username

Status
time_date type_status username

Step 4: Transforming binary 1:N relationship type.

Meeting room
room_name room_id amount_people start_date due_date username

Step 5: Transforming binary M:N relationship type.

Check
Type_status Id_staff

Be stationed.
Id_staff Room_id

Organizer
Name_og Room_id

Step 6: Transforming binary multi-value attribute A in relation K

Profile_photo
Pro_name photo

Staff_photo
Id_ staff photo
ITCS241 Database Management Systems
Semester 1/2020

The Relation Schema

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

Step 7: Transforming n-ary relationship types.


Step 8: Transforming specialization or generalization.

You might also like