Test Question Paper DBMS
Test Question Paper DBMS
3. Consider the following schema of a relational database and answer the following queries.
Employee (emp_no, name, address)
Project (p_no, p_name)
Work_no (emp_no, p_no)
Part(part_no, part_name, qty_on_hand, size)
Use (emp_no, p_no, part-no, number)
a) Print the names of the employees who are working on a project named “DBMS”
b) Print the names of the employees who are not working in any project.
c) List the part numbers and names of the parts used in both the projects “DBMS” and “MIS”.
4. Consider the following schema of a relational database and answer the following queries.
Suppliers(sid: int, sname:string, address: string)
Parts(pid:int, pname:string, color:string)
Catalog(sid:int, pid:int, cost:real)
a) Find the names of suppliers who supply some red part.
b) Find the sids of suppliers who supply some red part or are at 221 Packer Ave.
c) Find the pids of the most expensive parts supplied by suppliers named Amit Deshmukh
Dr. A.M.Rajurkar
Subject In charge