Assignment 2
Assignment 2
School: Department:CSE/IT
Part-B
Q. 4 Explain the role of virtual relations in relational database?And how we combine
relations for producing desired information?
Q. 5: Suppose there are two relations r and s, such that the foreign key B of r
references
the primary key A of s. Describe how the trigger mechanism can be used
a. A view that has the department name, manager name, and manager salary for every
department.
b. A view that has the employee name, supervisor name, and employee salary for each
employee who works in the ‘Research’ department.
c.A view that has project name, controlling department name, number of employees,
and total hours worked per week on the project for each project.
d.A view that has project name, controlling department name, number of employees,
and total hours worked per week on the project for each project with more than one
employee working on it.