Lab Act2 Part 2 Completed
Lab Act2 Part 2 Completed
01DDT22F1106
DDTP2B
Learning Outcomes
This activity encompasses activities 2H, 2I and 2J At the end of this activity, you should be
able to:
Identify the fundamental operators to retrieve information.
Restrict (Select)
Project
Join (outer, inner)
Cross Product
SCENARIO
Infinity Design Solution Sdn. Bhd, an advertising company wants to automate the system of
managing Human Resources (HR) data. Miss Suria was selected to be an IT programmer for
Infinity Design Solution. En. Mohamed insist to develop a system to manage staff payroll.
Miss Suria needs to prepare preliminary research about the operators and relational algebra.
INSTRUCTION:
Answer the entire questions below.
THEORY
Page 1 of 57
DFC 20203 DATABASE DESIGN
FUNDAMENTAL OPERATORS
Project
Л <attribute list> (R)
Join
◾Inner Join
(Л <attribute list> (R)) (Л <attribute list> (R))
◾Outer Join
Left Outer Join
(Л <attribute list> (R)) (Л <attribute list> (R))
Cross Product
(Л <attribute list> (R)) X (Л <attribute list> (R))
TRADITIONAL OPERATORS
Intersection
(Л <attribute list> (R)) (Л <attribute list> (R))
Difference
(Л <attribute list> (R)) – (Л <attribute list> (R))
Page 2 of 57
THANUS A/L LOGANATHAN DFC 20203 DATABASE DESIGN
01DDT22F1106
DDTP2B
ACTIVITY
The following activities (Activity Activity 2H until Activity 2J) are based on the tables below:
STAFF1
staffNo staffName Position
00689 Samat Electric engineer
00500 Ali Web developer
00111 Anaz Programmer
STAFF2
staffNo staffName Position
00111 Anaz Programmer
00500 Ali Web developer
00689 Samat Electric engineer
00444 Azie Web developer
00123 Hazlim Technical support
PROJECT
projectNo projectName Cost
1 DADD 1 000 000
2 Programming 500 000
3 Multimedia 800 000
CUSTOMER
custNo custName projectNo staffNo
C001 Adam & co 1 00111
C010 Tegas Tulin Sdn Bhd 2 00123
C011 Wangsa Mewangi Sdn Bhd 2 00123
C007 Wawasan Sdn Bhd 5 00999
C021 Halim & Son Sdn Bhd 3 00689
Page 3 of 57
DFC 20203 DATABASE DESIGN
Activity 2H
Activity Outcome: Identify the fundamental operators to retrieve
information.
i. Restrict (Select)
ii. Project iii.
Join (Outer, Inner)
iv. Cross Product
i. Restrict (Select)
Page 4 of 57
THANUS A/L LOGANATHAN DFC 20203 DATABASE DESIGN
01DDT22F1106
DDTP2B
iii. JOIN
A. INNER JOIN
B. OUTER JOIN
Page 5 of 57
DFC 20203 DATABASE DESIGN
Page 6 of 57
THANUS A/L LOGANATHAN DFC 20203 DATABASE DESIGN
01DDT22F1106
DDTP2B
Page 7 of 57
DFC 20203 DATABASE DESIGN
Page 8 of 57