Professional Documents
Culture Documents
An ISO 9001:2015 Certified Institution
An ISO 9001:2015 Certified Institution
An ISO 9001:2015 Certified Institution
1B What is meant by Integrity constraints. Explain the importance of Referential Integrity [CO2]
constraints [07]
OR
2A Considering the following Movie Database : Movie (Title, director, Myear, Rating)
Actor (Actor, Aage) Acts (Actor, Title) Director (Director, Dage)
Write relational algebraic queries for the following :
i) Find movies made by 'Satyajit' after 1960. [CO2]
ii) Find all actors and Directors. [10]
iii) Find "Maniratnam's" movies with 'Rajni'.
iv) Find (Director, Actor) pairs where the Director is younger than the ator.
2B What is meant by Integrity constraints. Explain the importance of Entity Integrity [CO2]
constraints [07]
3A Consider the following :
Resort (resortNo, resortName, resortType, resortAddress, resortCity, numSuite)
Suite(suiteNo, resortNo, suitePrice)
Reservation (reservationNo, resortNo, visitorNo, checkIn, checkOut, totalVisitor, suiteNo) [CO3]
Visitor(visitorNo, firstName, lastName, visitorAddress) [10]
Write the SQL queries for creating all the above Tables, and specify the keys and referential
integrity constraints
5A Consider the Company Database and Write SQL Queries for: [CO3]
I) List employees working in Project controlled by Dept 5 [08]
Page 1 of 2
II) List Managers who do not have Dependents
III) List Employees without Supervisors
IV) List Projects which are are controlled by Department having office in Mangalore
OR
6A Consider the Company Database and Write SQL Queries for:
V) List employees working in Project controlled by Dept 5
VI) List Managers who do not have Dependents [CO3]
VII) List Employees without Supervisors [08]
List Projects which are are controlled by Department having office in Mangalore
Page 2 of 2