Dbms Model Question Set-2
Dbms Model Question Set-2
AMARAVATHIPUTHUR, KARAIKUDI
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
MODEL EXAM
SET-2
Reg. Date:
Year/Dept: II/CSE
No: Time:
ii. Write a SQL query to display employee name, employee city ,company name and salary
of all the employees whose salary >10000
iii) Write a query to display all the employees working in “XYZ company
(OR)
16.b)i) Draw an E – R Diagram for Hospital Management S. (15
)
ii) Consider the following relational schema
Employee (empno,name,office,age)
Books(isbn,title,authors,publisher)
Loan(empno, isbn,date)
a. Find the names of employees who have borrowed a book Published by McGraw-Hill. (15
)
b. Find the names of employees who have borrowed all books Published by McGraw-Hill.
c. Find the names of employees who have borrowed more than five different books pub-
lished by McGraw-Hill.
d. For each publisher, find the names of employees who have borrowed more than five
books of that publisher.
******HANDLED BY M.SINDHU(AP/CSE)******
**********ALL THE BEST***********