Virtual University of Pakistan: Assignment No. 02 Student Id: Bc210407489
Virtual University of Pakistan: Assignment No. 02 Student Id: Bc210407489
Assignment No. 02
Relations schemas:
Database Relations:
Teacher = { (T001, Dr. Najma Waheed, Professor, CS, 170000), (T002, Dr. Nouman Masood,
Assistant Professor, MGT, 120000), (T003, Dr. Farhana Khan, Professor, CS, 150000), (T004, Dr.
Tayyaba Ali, Professor, CS, 140000), (T005, Mr. Nouman Ahmad, Lecturer, MGT, 80000), (T006,
Mr. Waqass Raheem, Lecturer, ENG, 75000)}
Class = { (A001, CS403, Monday, A Block, CS), (B002, MGT101, Tuesday, B Block, MGT), (C003,
ENG201, Monday, C Block, ENG), (B005, CS403, Friday, B Block, CS)}
2. Perform the following relational algebra operations on the given relations/tables and
provide resultant tables.
1- SOLUTION:
Teacher Table:
Class Table:
2-SOLUTION: (i)
(ii)
(iii)