DBMS QB
DBMS QB
UNIT-1
7 MARKS:
1. What are the problems with traditional file processing system? Explain briefly
2. Why would you choose a database system instead of simply storing data in operating- system
files? Explain briefly
3. Describe in detail about Database Languages and Database users
4. Explain Database Applications with relevant examples.
5. Explain various database levels of Abstraction.
6. Discuss in detail about Data Independence and its types.
7. Explain Database System Architecture with neat diagram
8. Explain Storage Manager and Query Processor components of DBMS with neat diagram
9. Define ER diagram. Explain various components used in ER diagram.
10. Discuss about various types of attributes with suitable example.
11. State and explain various features of E-R Models.
12. Discuss the representation of weak entities, participation and key constraints in ER diagram
13. Describe about Generalization and Specialization with examples.
14. Describe about entity, entity set, relationship, relationship set with suitable examples
15. Define aggregation. Demonstrate aggregation using E-R diagram.
16. With an example briefly describe Aggregation versus Ternary Relationships
3MARKS:
UNIT-2:
7MARKS:
49. List different types of Integrity constraints over relations and explain.
50. Discuss in detail about integrity constraints over relations with examples
51. Define Query. Describe how querying can be done in relational database.
52. Discuss in detail about Query processing in relational database.
53. Describe in detail about Logical database design with ER model.
54. Describe how to translate an ER diagram into a relational database schema.
55. Describe in detail about altering Views and Tables.
56. What is a view? With an example, briefly describe altering Views/Tables.
57. Discuss in detail about Selection and Projection operations of relational algebra with examples
58. Describe the application of relational algebra with selection and projection operations.
59. List out the set operations specified in relational algebra? explain with examples.
60. Discuss in detail about the Set operations of relational algebra with examples.
61. Discuss in detail about Division and Rename operators in relational algebra.
62. Describe about Rename and Division operators in relational algebra
63. What is join operation in relational algebra? Discuss in detail about variants of joins.
64. List different types of Joins in relational algebra and explain with examples.
3MARKS:
2MARKS:
7MARKS:
102. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below queries using Domain Relational calculus for the given schema
i) Find the names of the sailors who have reservations
ii) Find the boat ids which are reserved.
iii) Find the names of sailors who have reserved a red boat
103. Explain the SELECT statement structure of SQL with suitable examples.
104. Explain the various operators used in where clause to filter the data while retrieving.
105. What is a sub query? Explain the syntax of nested query with a suitable example.
106. Explain correlated queries with suitable example.
107. Discuss about aggregate operators of SQL.
108. Describe set comparison operators of SQL.
109. Describe the impact of AND, OR, NOT clauses with respect to SQL queries
110. Explain the usage of primary key in the view of NULL values. Create a student table with
attributes sid, sname, address and phone number. Identify the primary key also.
111. Define the terms - Natural join, equi join and conditional join with suitable examples
with respect to SQL.
112. Explain the variants of outer joins with suitable SQL statements and /or Venn diagrams
3MARKS:
113. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below querry using Tuple Relational calculus for the given schema
Find the sailors who have reserved all red boats.
119. Write a SQL query to display the employee’s first name and last name as concatenated
string.
120. Identify the difference between the SQL queries with and without using DISTINCT
keywords.
121. Identify the difference between nested queries and correlated queries
122. Identify the difference between EXISTS and NOT EXISTS keyword.
123. Does HAVING clause requires GROUPBY as mandatory? Justify your answer with an
example.
124. How do you Compare NULL values of a relation?
125. What is the difference between AND, OR operators of SQL
126. How do you restrict that a table cannot have null values?
127. Illustrate the difference between inner join and cross product with suitable examples.
128. Illustrate the difference between LEFT Outer JOIN and RIGHT OUTER JOIN with a
suitable example.
2MARKS:
129. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below queries using Tuple Relational calculus for the given schema
Find the names of sailors who have reserved all boats.
130. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below queries using Tuple Relational calculus for the given schema
Find the names of sailors who have reserved all red boats.
"
131. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below queries using Domain Relational calculus for the given schema
Find the names and ages of sailors with a rating above 7.
"
132. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below queries using Domain Relational calculus for the given schema
Find the names of sailors with age>35
"
133. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)
Answer the below queries using Domain Relational calculus for the given schema
Find the names of sailors who have reserved boat 103.
find the student details who enrolled for a course called “DBMS`` using nested queries.
140. "Schema:
Sailors(sid, sname, rating, age)
Boats( Bid, Bname, Color)
Reserves(sid, bid, day)"
"Schema:
141. Student(sid, sname, address, phno)
Course( cid, cname, credits)
Enrolls(sid, cid, year)
From the above schema, find the student details who have enrolled for the `DWDM’ but not for
` DBMS’ course.
142. "Schema:
Student(sid, sname, address, phno)
Course( cid, cname, credits)
Enrolls(sid, cid, year)
From the above schema, find the student details who have enrolled for the either `DWDM’ or `
DBMS’ course
143. "SELECT columns FROM TableA RIGHT OUTER JOIN TableB ON A.columnName =
B.columnName WHERE A.columnName IS NULL
What is the output of the above query?
UNIT-3
PART –B
7MARKS:
3MARKS:
164. "Suppose that we have the following three tuples in a legal instance of a relation
schema S with three attributes ABC (listed in order): (1,2,3), (4,2,3), and (5,3,3).
Can you identify any dependencies that hold over S?
165. Identify the differences between trivial FD and Non- Trivial FD.
166. "Consider the relation R with five attributes ABCDE. If the relation R is having following
dependencies
A --> B, BC --> E, ED-->A
Identify the trivial and Non-trivial FDs from the above FD set
167. Consider a relation schema R ( A , B , C , D ) with the functional dependencies A -> B and
C -> D. Determine whether the decomposition of R into R1 ( A , B ) and R2 ( C , D ) is lossless or
lossy.
168. Let a relation R (A, B, C, D ) and functional dependency {AB –> C, C –> D, D –> A}.
Relation R is decomposed into R1( A, B, C) and R2(C, D). Check whether decomposition is
dependency preserving or not.
169. How to identify the partial dependency in a realtion? Give an Example.
170. State the second Normal Form with an example .
171. Describe the rules satisfied by relation R, If R is to be in 3NF.
172. What are the anomalies caused by transitive dependency? State a suitable example
173. "Suppose you are given a relation R with four attributes, ABCD. For each of the following
sets of FDs, assuming those are the only dependencies that hold for R. if the relation is not in
BCNF, decompose to upto BCNF.
FD set: .C -> D, C -> A, B -> C
174. "Consider the attribute set R = ABCDEF and the FD set is F={ABC-->DE, BC -->D, E-->F}.
Decompose the R, if it is not in BCNF."
175. Write a short notes on axioms to calculate (F)+ in case of MVD
176. "State the following rules
MVD Complementation, MVD Augmentation, MVD Transitivity
2MARKS:
177. let R is a relation with attributes A, B,C,D,E. if the data insertion is not possible until
unless other data provided, then what sort of anomaly it is???
178. let R is a relation with attributes A, B,C,D,E. if the attribute `D`` is updated in one
place and the same value is not updated at another place , then what sort of anomaly it is?
179. "Consider the relation R with five attributes ABCDE. If the relation R is having following
dependencies
A-->B, BC->E, ED-->A
List the all candidate keys possible.
180. "Consider the relation R with five attributes ABCDE. If the relation R is having following
dependencies
A-->B, BC --> E, ED --> A
List all super keys
182. "Given a relational schema R( X, Y, Z ) set of functional dependencies P and Q such that:
P = { X -> Y, Y -> Z, Z -> X } and Q = { X -> YZ, Y -> X, Z -> X } using FD sets P and Q are equivalent or
not.
184. "R(A,B,C,D) is a relation. Which of the following does not have a lossless join,
dependency preserving decomposition?
(A) A->B, B->CD (B) A->B, B->C, C->D (C) AB->C, C->AD"
185. Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values. F =
{CH -> G, A -> BC, B -> CFH, E -> A, F -> EG} is a set of functional dependencies (FDs) so that F+ is
exactly the set of FDs that hold for R. How many candidate keys does the relation R have?
186. Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values. F =
{CH -> G, A -> BC, B -> CFH, E -> A, F -> EG} is a set of functional dependencies (FDs) so that F+ is
exactly the set of FDs that hold for R. is the relation in 1NF OR 2NF?
187. Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values. F =
{CH -> G, A -> BC, B -> CFH, E -> A, F -> EG} is a set of functional dependencies (FDs) so that F+ is
exactly the set of FDs that hold for R. is the relation in 3NF?
188. Consider a relation R( P, Q, R, S, T, U, V, W, X, Y) wit FD = { PQ -> R, P -> ST, Q -> U, U ->
VW, and S -> XY}. Decompose the relation R into 3NF.
189. Consider the following relational schema:
Suppliers(sid:integer, sname:string, city:string, street:string)
Parts(pid:integer, pname:string, color:string)
Catalog(sid:integer, pid:integer, cost:real)
Assume that, in the suppliers relation above, each supplier and each street within a city has a
unique name, and (sname, city) forms a candidate key. No other functional dependencies are
implied other than those implied by primary and candidate keys. In which normal form the
above Relation is??
190. "Consider the following relational schemes for a library database: Book (Title, Author,
Catalog_no, Publisher, Year, Price) Collection (Title, Author, Catalog_no) with in the following
functional dependencies:
I. Title Author --> Catalog_no
II. Catalog_no --> Title, Author, Publisher, Year
III. Publisher Title Year --> Price
Assume {Author, Title} is the key for both schemes
In which Normal Form the above relation is in??
191. "Consider the following relational schemes for a library database: Book (Title, Author,
Catalog_no, Publisher, Year, Price) Collection (Title, Author, Catalog_no) with in the following
functional dependencies:
I. Title Author --> Catalog_no
II. Catalog_no --> Title, Author, Publisher, Year
III. Publisher Title Year --> Price
Assume {Author, Title} is the key for both schemes
Is there any possibility of MVD ? Justify
192. Consider the attribute set R = ABCDEGH and the FD set F = {AB -> C, AC -> B, AD -> E, B ->
D, E -> G}. Is there any Multi Valued Dependency??
UNIT-4
7MARKS:
193. List the ACID properties of transaction. Explain the importance of each
194. Define Transaction. Illustrate and explain the transaction state diagram.
195. Explain the distinction between the terms serial schedule and concurrent schedule.
196. Explain the anomalies caused due to interleaved execution of transactions.
197. Define conflict serializability? Discuss in detail about conflict serializability with an
example.
198. Discuss in detail about view serializability with an example.
199. Describe recoverable schedules and non-recoverable schedules with an example of
each.
200. What is recoverable schedule? List and explain different types of recoverable schedules .
201. Describe in detail about Lock Based Protocols.
202. Discuss in detail about 2 phase locking protocol and strict 2 phase locking protocol.
203. State and explain the steps involved in Timestamp based concurrency control Protocol.
204. Discuss the validation based protocol in detail.
205. Describe in detail how Multiple-Granularity Locking works.
206. Describe about Multi version concurrency control protocol.
207. Define Deadlock? Explain about Deadlock prevention and detection methods.
208. Write short notes on deadlocks .Also depict wait-for graph to detect deadlock system.
3MARKS:
209. Transactions access data using two operations. What are they? Illustrate with an
example.
210. List the various states of transaction.
211. Why does DBMS interleave concurrent transactions?
212. What are the two good reasons for following concurrent executions of transactions?
213. Illustrate serial schedule with an example.
214. Differentiate between conflict equivalent and conflict serializable.
215. Discuss about cascading rollback.
216. Describe blind writes.
217. Define lock compatibility matrix.
218. Protocol requires that each transaction issue lock and unlock requests in two phases.
List the phases.
219. Write the importance of Thomas’ write rule.
220. What is the difference between implicit and explicit locking?
221. What are the two different deadlock prevention schemes?
222. Describe intention lock modes.
223. Define Total rollback and Partial rollback
224. Write a short note on lock conversions.
2MARKS:
UNIT-5
7MARKS:
241. What are the properties required of LSNs? List and explain different types of log records.
242. Explain the purpose of the checkpoint mechanism. How often should check points be
performed? How does the frequency of checkpoints affect System performance when no failure
occurs and the time it takes to recover from a system crash?
243. Briefly describe the log based recovery algorithm.
244. List the recovery actions taken when the system crash occurs?
245. Describe the steal and force policies in the context of a buffer manager.
246. Describe log based buffering and database buffering.
247. What are the roles of the Analysis, Redo and Undo phases in ARIES?
248. Aries recovers from a system crash in three phases. List the phases and explain each
phase.
249. Explain about primary index, secondary index, dense index and sparse index, clustered
and un-clustered indexes.
250. Discuss some important properties of an index that affect the efficiency of searches
using the index.
251. Explain how data is organized in a hash based index? When would you use a hash-based
index?
252. What is an index data structure? How is data organized in a tree based index? When
would you use a tree-based index? Explain.
253. Construct B+ tree for(1,4,7,10,17,21,31,25,19,20,28,42) with order 4.
254. Describe how search, insert and delete operations work in ISAM indexes and B+ tree.
255. Explain hash based indexing briefly.
256. Evaluate the cost of various operations on heap file organization.
3MARKS:
2MARKS: