DBMS Questions
DBMS Questions
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. Explain the mapping procedure of ER – to Relational model with suitable example.
23. Explain different ‘Extended ER features’ with examples.
24. Explain ER model of DBMS and with suitable example.
25. Explain the different constraints of ER model.
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.
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.
2. Consider the following relation
Project (proj#, proj_name, chief_architect)
Employee (emp#, emp_name)
AS Signed (proj#, emp_name)
Use relational algebra to express following queries.
a. Get details of employee working on project?
b. Get the employee number of employees who work on all projects.
c. Get details of project on which employee with name „AAA‟ is working.
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.
4. 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.
MODULE -11
11. Explain codd‟s rules for relational database management system in detail.
12. Explain Normalization of DBMS.
13. Explain 1st Normal Form, 2nd Normal form and 3rd Normal Form with suitable
example.
14. 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.
15. Normalize the given relation up to 3
NF: R = {A, B, C, D}
Fd‟s = {AB→D, AC →BD, B→C}
16. Define Boyce-Codd normal form. How does it differ from 3NF? Why is it considered
a stronger form of 3NF?
17. Explain lossless join decomposition in
18. How do you find lossy and lossless decomposition?
19. 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 t he r e la t io n is no t in B CN F, de co mp o se it u nt i l it beco
mes BC N F.
20. 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.
Unit – IV