Question
Present a table of 5-tuples in a 5-ary relation represent these attributes of all people in your group: Name (N), Matrix No. (M), Race (R),
Present a table of 5-tuples in a 5-ary relation represent these attributes of all people in your group: Name (N), Matrix No. (M), Race (R), City (C), State (S).
a) Construct a database of records.
b) Determine a primary key for this relation. Give a reason for the answer.
c) Under what conditions would (Name, Race) be a composite key?
d) Under what conditions would (Name, Race, City) be a composite key?
e) What do you obtain when you apply the selection operator Sc, where C is the condition (Race=Bumiputera Sabah) V (City=Kota Kinabalu), to the database?
f) Display the table produced by applying the projection P1,4 to the database.
How to do this exercise?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started