Comprehensive DBMS Question Bank
Comprehensive DBMS Question Bank
https://rtpnotes.vercel.app
SELECT empName
FROM employee E
WHERE NOT EXISTS (SELECT custId
FROM customer C
WHERE C. salesRepId = E. empId
AND C. rating < > ‘GOOD’)
A)Ordered file
B)Unordered file
C)Hashed file
D)B tree
39 Which command is used to remove rows from a table ? C
A) delete
Qno Question Answer
B) remove
C) truncate
D ) both A & B
40 SELECT empname C
FROM department
WHERE dept_name LIKE ____ Computer Science';
A) &
B) ``
C%
D$
41 Which of the following is a top-down approach in which the C
entity's higher level can be divided into two lower sub-
entities?
A) Aggregation
B) Generalization
C) Specialization
D) All of the above
42 WITH max_budget (VALUE) AS D
(SELECT MAX(budget)
FROM department)
SELECT budget
FROM department, max_budget
WHERE department.budget = MAX budget.value;
a) Budget
b) Department
c) Value
d) Max_budget
43 Which one of the following given statements possibly D (from is missing,
contains the causing the error)
error?
A. select * from emp where empid = 10003;
B. select empid from emp where empid = 10006;
Qno Question Answer
C. select empid from emp;
D. select empid where empid = 1009 and Lastname =
'GELLER'
44 Consider the relations r(A, B) and s(B, C), where s.B is a C
primary key and r.B is a foreign key referencing s.B.
Consider the query
Q: r ⋈ (σB<5(s))
Let LOJ denote the natural left outer-join operation.
Assume that r and s contain no null values.
Which one of the following queries is NOT equivalent to Q?
(A) σB<5(r ⋈ s)
(B) σB<5(r LOJ s)
(C) r LOJ (σB<5(s))
(D) σB<5(r) LOJ s
45 Views are useful for _____ unwanted information, and for A
collecting
together information from more than one relation into a
single view.
A.Hiding
B.Deleting
C.Highlighting
D. All of the above
46 In general, a file is basically a collection of all related D
______
a.Rows & Columns
b.Fields
c.Database
d.Records
47 Relations produced from an E-R model will always be in C
a) 1NF
b) 2NF
c) 3NF
d) 4NF
e) Other
48 4NF is designed to cope with C
a)Transitive dependency
b)Join dependency
c)Multivalued dependency
d)None of these
49 What do you mean by one to many relationships? B
Qno Question Answer
A)One class may have many teachers
B)One teacher can have many classes
C)Many classes may have many teachers
D)Many teachers may have many classes
50 Which of the following refers to the level of data abstraction B
that describes exactly how the data actually stored?
A:Conceptual Level
B:Physical Level
C:File Level
D:Logical Level
51 In SQL the spaces at the end of the string are removed by C
_______ function.
a) Upper
b) String
c) Trim
d) Lower
52 Which of the following is the property of transaction that C
protects data from system failure?
a) Atomicity
b) Isolation
c) Durability
d) Consistency
53 Which normalization form is based on the transitive C
dependency?
a) 1NF
b) 2NF
c) 3NF
d) BCNF
54 Which of the following SQL command is used for removing Drop
(or deleting) a relation form the
database?
55 Which of the following is known as minimal super key? Candidate key
56 Given the following relation instance. YZ -> X and Y ->
xyz Z
142
153
163
322
Qno Question Answer
Which of the following functional dependencies are
satisfied by the instance?
57 Consider the following relational schema: Find the names
of all suppliers
Suppliers(sid:integer, sname:string, city:string, street:string) who
Parts(pid:integer, pname:string, color:string) have
Catalog(sid:integer, pid:integer, cost:real) supplied a non-
Consider the following relational query on the above blue part
database:
SELECT S.sname
FROM Suppliers S
WHERE S.sid NOT IN (SELECT C.sid
FROM Catalog C
WHERE C.pid NOT IN (SELECT P.pid
FROM Parts P
WHERE P.color<> 'blue'))
F = {A->C,AC->D,E->AD,E->H}
G = {A->CD,E->AH}
66 To be conflict serializable, all transaction should follow Two phase locking
67 Which of the following is NOT a type of database model? Object oriented model
T1: read(P);
read(Q);
if P = 0 then Q:=Q+1
write(Q);
T2:read(Q)
read(P);
if Q = 0 then P:=P+1
write(P)