DBMS Pyqs
DBMS Pyqs
USN
Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.
Module – 1 Marks
Explain the components of DBMS and their interaction with the help of a neat
(a) 10
diagram.
Describe various disadvantages of file system compare to Data base management
Q.1 (b) 5
system.
What is the difference between controlled and uncontrolled redundancy? Illustrate
(c) 5
with examples.
OR
Define the following terms: Data Model, Database Schema, Database State,
(a) 7
Conceptual Schema, Data Independence, DDL and DML
Describe the three-schema architecture. Why do we need mappings between schema
(b) 8
Q.2 levels?
What is an entity type? What is an entity set? Explain the differences among an entity,
(c) an 5
entity type, and an entity set
Module – 2
(a) Discuss the various types of inner join operations. 6
(b) Draw an ER diagram for HOSPITAL Management system with the following 10
Q.3 PATIENTS(Pssn, Lastname, Firstname, PhoneNo, Sex, DOB, Address)
DOCTORS(Dssn, Lastname, Firstname, PhoneNo, Sex, DOB, Address)
BEDS(RoomNo, BedNo, Type, Status, Price)
ACCOUNTS(DateIn, DateOut, Amount)
Show all the types of Entities and Attributes. Assume your own Relationships,
Participation constraints and Cardinality ratios with explanation.
Discuss the entity integrity and referential integrity constraints. Why is each 4
(c)
considered important?
OR
(a) How are the OUTER JOIN operations different from the INNER JOIN operations? 6
(b) Consider the following relations for a database that keeps track of student enrollment 10
Q.4 in courses and the books adopted for each course:
STUDENT(SSN, Name, Major, Bdate)
COURSE(Course#, Cname, Dept)
ENROLL(SSN, Course#, Quarter, Grade)
BOOK_ADOPTION(Course#, Quarter, Book_ISBN)
TEXT(Book ISBN, BooLTitle, Publisher, Author)
Specify the following queries in relational algebra on the database schema given
a. List the number of courses taken by all students named 'John Smith' in Winter 1999
(i.e., Quarter = 'W99').
b. Produce a list of textbooks {include Courses, BookISBN, Book, Title} for courses
offered by the 'CS' department that have used more than two books.
18CS53
c. List any department that has all its adopted books published by 'AWL Publishing' .
d. List the course which has more than three textbooks.
e. List the names of the students who has enrolled in more than one courses.
Consider the two tables T1 and T2 shown. Show the results of the following 10
(b) operations:
TABLE 1
P Q R
10 a 5
15 b 8
25 A 6
TABLE 2
A B C
10 B 6
25 C 3
10 B 5
(c) How Triggers and assertions are defined? 4
OR
(a) Consider the Movie database: 10
MOVIE(Title,Director,Movieyear,Rating)
Q.6 ACTORS(Actor,Age)
ACTS(Actor,Title)
DIRECTORS(Director,DirectorsAge)
Write the following queries using SQL
i)List the movies directed by “ STEVEN ” after 2018
ii) List all the actors who are over 40 year old and worked in all movies directed by
“JOHN”.
iii) Find an actor who was casted in “maxim” movie.
iv) Find director and actor of the movie whose title starts with letter “A”.
v) List all female actresses.
(b) Describe the concept of a cursor and how it is used in embedded SQL. 5
(c) What is the impedance mismatch problem? Which of the three programming 4
approaches minimizes this problem?
Module – 4
(a) What do you mean by Normalization? Explain 2NF and BCNF with a suitable 8
example.
(b) Write a trigger in SQL to call a stored procedure INFORM_SUPERVISOR() 8
Q.7 whenever a new record is inserted or updated , check whether an employee’s salary is
greater than the salary of his/her direct supervisor in the COMPANY database
(c) What is view? Can we update the view? Discuss 4
OR
18CS53
(a) Which Normal form is based on the concept Transitive Dependency? Explain with an 5
example.
Q.8
(b) Consider the following two sets of functional dependencies: F = {A C, ACD, E7 5
AD, E H} and G = {A CD, E AH}. Check whether they are equivalent.
Normalize the below relation up to 3NF 10
(c)
Modul Dept Lectur Text
e er
M1 D1 L1 T1
M1 D1 L1 T2
M2 D1 L1 T1
M2 D1 L1 T3
M3 D1 L2 T4
M4 D2 L3 T1
M4 D2 L3 T5
M5 D2 L4 T6
Module – 5
(a) Explain LOST UPDATE, DIRTY READ and BLIND WRITE. 6
Check whether the below schedule is conflict serializable or not 7
(b) {b2,r2(X),b1,r1(X),w1(X),r1(Y),w1(Y),w2(X),e1,c1,e2,c2}}
Q.9
(c) With neat diagram, Explain the various states of transaction execution. 7
OR
(a) What is 2PL? Explain with an Example. 6
(b) How do you detect a deadlock during concurrent transaction execution? 6
Q.10
(c) Explain the various database recovery techniques with suitable examples. 8
18CS53