Final-DBMS Question Bank
Final-DBMS Question Bank
5. List the various users of DBMS and explain its functions. Also explain the roles & responsibilities
of DBA.
9. Consider the relational database, where the primary keys are underlined.
Give an expression in SQL for each of the following queries:
Employee(person_name,street,city)
Works(person_name,company_name,salary)
Company(company_name,city)
Manages(person_name,manager_name)
a. Find the names of all employees who work for the First Bank Corporation.
b. Find the names of all employees who live in the same city and on the same street
as do their managers.
c. Find the names, street address, and cities of residence of all employees who work
for First Bank Corporation and earn more than $10,000 per annum.
d. Find the names of all employees who earn more than every employee of Small Bank
Corporation.
g. Find the names of all employees in this database who live in the same city as the company for
which they work
i. Delete all tuples in the works relation for employees of Small Bank Corporation.
10. Consider the relational schema
Lives (person_name, street, city)
Works (person_name, company_name, salary)
Located-in (company_name, city)
Manages (person_name, manager_name)
Write SQL to find the following.
i) Find the name, street, city of all employees who work for 'IBM' and earn more
than Rs. 15,000/-
ii) Find the name of all companies located in "Nagpur".
iii) Find those who lives and works in same city.
i) Find the names and quota percentages of salespeople who have an order with
ASIAN CONSTRUCTION in descending order of quota percentage.
ii) Find the quota percentage of salespeople who have an order with a customer
in MUMBAI.
iii) Find the names of salespeople who have two or more orders.
iv) Find the names of salespeople who have an order with all customers.
23. Define functional dependency. Explain the rules of Inference or Armstrong axioms with
supporting rules.
26. Give the reasons for the occurrence of deadlock. Suggest its prevention method.
27. What is locking protocol? Explain two phase locking protocol with the help of example.
29. Describe different types of failures that occurs in the system? How they are recovered.