DBMS previous questions module wise
DBMS previous questions module wise
Dbms questionbank
QUESTION BANK
Module – I
20. A large Bank named “XYZ” is an international bank having 28 branches overseas and
country and different cities. Each branch offer services banking and trading. Customer
can select saving/current account with single or join operation in the banking. Each
branch maintains the account detail of customers keep record of each transaction in
each service by the customer to his/her account.
Design an E-R diagram indicating all entities with generalization and specialization,
attributes with key and cardinality ratio?
21. Construct an E-R diagram for a university Director”s office. The office maintains
data about each class, including the instructor, the enrolment, and the time and place
of the class meetings. For each student-class pair, a grade is recorded. Document all
assumptions that you make about the mapping constraints.
22. What is physical and logical data independence? Also explain the difference
between physical and logical data independence.
23. What are the different types of data model?
24. Explain hierarchical model of DBMS and compare it with Network model.
25. Explain the characteristics of relational database management system (RDBMS).
Module – II
a. Find the names of all employees who work for corporation bank.
b. Find the names and cities of residence of all employees who work in
corporation bank.
Downloaded by Abi ([email protected])
lOMoARcPSD|54900139
c. Find the names of all employees in this database who live in the same city
as the company for which they work.
d. Find the names of all employees who live in the same city and on the same street
as do their managers.
The key fields are underline as primary key. Give the SQL express of the following:-
a. Select the department name of instructor whose name neither „A‟ nor „B‟.
b. Find the number of instructors of each department who teach course „DBMS‟
c. Find the department that have the highest average salary.
d. Give a 5% salary raise to instructor whose salary is less than average.
20. 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 Navathe.
b. Find the names of employees who have borrowed all books Published by Navathe.
c. For each publisher, find the names of employees who have borrowed more than
five books of that publisher.
21. .Consider the following tables:
Employee (Emp_no, Name, Emp_city)
Company (Emp_no, Company_name, Salary)
a. Write a SQL query to display Employee name and company name.
b. Write a SQL query to display employee name, employee city ,company
name and salary of all the employees whose salary >10000
c. Write a query to display all the employees working in “XYZ‟ company
Module – III
Module – IV
15. Explain codd‟s rules for relational database management system in detail.
16. Explain Normalization of DBMS.
17. Explain 1st Normal Form, 2nd Normal form and 3rd Normal Form with suitable
example.
18. Consider the universal relation R={ A,B,C,D,E,F,G,H,I} and the set of functional
dependencies F={(A,B)→{C],{A}→{D,E},{B}-→{F},{F}→{G,H},{D}→[I,J}.what
is the key for Decompose R into 2NF,the 3NF relations.
19. Normalize the given relation up
to 3 NF: R = {A, B, C, D}
Fd‟s = {AB→D, AC →BD, B→C}
20. Define Boyce-Codd normal form. How does it differ from 3NF? Why is it
considered a stronger form of 3NF?
21. Explain lossless join decomposition in
22. How do you find lossy and lossless decomposition?
23. Suppose you are given a relation R = {A, B, C, D, E} with the following functional
dependencies
F= {CE→D, D → B, C → A}
a. Find all candidate keys.
b. Identify the best normal form that R satisfies (1NF, 2NF, 3NF, or BCNF).
c. If the relation is not in B CN F, decompose it until it becomes BC N F.
24. Suppose you are given a relation R {A, B, C, D, E} with the following
functional dependencies
F= {AB→C, DC → AE, E → F}
a. What are the keys of this relation?
b. Is this relation in BCNF? If not, explain why by showing one violation
c. Is this decomposition (A, B, C, D) (B, C, D, E, F) a dependency
preserving decomposition? If not, explain briefly.
Module – V