Professional Documents
Culture Documents
Duration: 2 hours
Learning Outcomes
Activity 2A
Activity Outcome : Understand components of a database table: record(tuple), attribute(field),
domain, degree and cardinality
Match the components of a database table below with its appropriate description.
Attribute Tuple Domain Degree Cardinality
CUSTOMER_T
Customer_No Customer_Name Customer_Address
1234 DIYA NATASHA DIYA ENT. KUCHING SARAWAK
2345 FILA AZIRA FILARA SDN. BHD, MIRI
SARAWAK
3456 RINA WAFIZA RIZA ENT. SIBU SARAWAK
4567 HARITH FAZLY HARITH SDN. BHD, MIRI
SARAWAK
5678 JERRY STANLEY JERRY ENT. MUKAH SARAWAK
PRODUCT_T
Product_No Product_Description Product_Unit_Price
A123 PENCIL 0.30
B234 ERASER 0.20
C345 SHARPENER 0.50
D456 RULER 0.80
E567 PEN 1.00
ORDER_T
Order_No Order_Date Customer_No
1111 2014-02-01 1234
1122 2014-02-05 3456
1133 2014-02-21 5678
1144 2014-03-30 2345
1155 2014-04-01 4567
Page 2 of
5
ORDER_PRODUCT_T
Order_No Product_No Quantity
1111 B234 100
1122 C345 150
1133 E567 120
1144 D456 150
1155 A123 200
1122 A123 150
1144 C345 120
Activity 2C
Activity Outcome : Understand characteristic of relation scheme: relation name, attribute name
and domain
Based on Figure 5.1:
1. Label the following components of a database table.
a. tuple
b. attribute
c. cardinality
d. relation name
e. degree
Student
2. Write syntax and relation scheme for relation STUDENT.
Syntax
Relation
Scheme
3. Based on ORDER_STATIONERY database in Activity 2B, write the relation schema for
each tables.
CUSTOMER_T
PRODUCT_T
ORDER_T
ORDER_PRODUCT_T
Learning Outcomes
Activity 2D
Activity Outcome : Describe a relation instance
Briefly explain your own words the definition below and write an example for each
relation.
Relation Scheme
Relation
Instance
Page 5 of 5