0% found this document useful (0 votes)
279 views2 pages

DBMS Module4 QuestionBank

bcs403 module4

Uploaded by

sravanisathya.p
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
279 views2 pages

DBMS Module4 QuestionBank

bcs403 module4

Uploaded by

sravanisathya.p
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Database Management System (BCS403) Question Bank

MODULE-4
SQL: Advances Queries, Transaction Processing
CO
Q. No. Question CL Marks
s
Discuss how each of the following constructs is used in SQL and discuss
the various options for each construct:
1 CO4 L2 10M
(a) Nested Queries (b) Group by and Having clause (c) Schema change
statements (d) Aggregate functions (e) Views
How are Assertions and Triggers defined in SQL? Explain with an
2 CO4 L2 8M
example.(July/Aug 2022)
Explain the basic data types available for attributes in SQL. ”.(Dec
3 CO4 L2 5M
2023/Jan 2024)
What are triggers? Explain with syntax and suitable example. ”.(Dec
4 CO4 L2 5M
2023/Jan 2024)
What are assertions? Assuming suitable company schema write an
assertion for the condition.
5 “The salary of an employee must not be greater than the salary of the CO4 L2 6M
manager of the department that the employee works for”.(Dec
2023/Jan 2024)

6 How to create views in SQL? Explain with an example.(July/Aug 2022) CO4 L2 6M

How is view created and dropped? What problems are associated with
7 CO4 L1 6M
updating view?(June/July 2023)
Explain EXISTS and UNIQUE functions in SQL. Consider the COMPANY
8 database and write a query to list the name of the manager who have CO4 L2 8M
atleast one dependent. (Jan/Feb 2023)
Explain the usage of Aggregate function in SQL. Write an SQL query to
find sum of the salaries of all employees, the maximum salary, the
9 CO4 L2 10M
minimum salary and the average salary by renaming the columns in a
single row table. (Jan/Feb 2023)
With a real world example, explain the following:
10 (i) Correlated nested queries (ii) Schema change statements in CO4 L2 6M
SQL (Jan/Feb 2023)

Department of AI &ML, Vemana IT Page 1 of 2


Database Management System (BCS403) Question Bank

Define transaction. Discuss ACID properties. (Jan 2022, Feb 2021, Jan CO4 L2 7M
11
2019, July 2019, July 2018, July/Aug 2022,Jan/Feb 2023)

With a neat diagram explain transition diagram of a transaction. CO4 L2 8M


12
(Feb 2021, Dec 2019, July 2018, Dec 2023/Jan 2024)

Why concurrency control is needed demonstrate with example? CO4 L2 12M


13
(Jan 2022, Feb 2021, July 2018, July/Aug 2022,Jan/Feb 2023)

Describe the problems that occur when concurrent execution CO4 L2 6M


14
uncontrolled. Give examples. ?(June/July 2023)

Discuss the desirable properties of a transactions. (Feb 2021, Jan 2019, CO4 L2 6M
15
Jan 2018,Dec 2023/Jan 2024)

16 What is Serializability? How can serializability be ensured? (July 2018) CO4 L2 7M


Determine whether the given schedule is serializable or not? CO4 L2 7M
17 S={b1, r1(X), w1(X), b2, r2(X), w2(X), e2, c2, r1(Y), w1(Y), e1, c1} (Feb
2021)
Determine whether the given schedule is serializable or not? CO4 L2 8M
18 S= {b2, r2(X), b1, r1(X), w1(X), r1(Y), w1(Y),w2(X), e1, c1, e2, c2}.
(Feb 2021,July 2019)
Write short notes on the following: CO4 L2 6M
i. Transaction rollback and cascading rollback
19
ii. Transaction support in SQL (Jan 2022,July 2019,Jan 2018,
(June/July 2023))
Determine whether the given schedule is serializable or not? CO4 L2 10M
20 S={b2, r2(Z), r2(Y), w2(Y), b3, r3(Y), r3(Z), b1, r1(X), w1(X), w3(Y),
w3(Z), e3, c3, r2(X), r1(Y), w1(Y), e1, c1, w2(X), e2, c2 }. (Jan 2019)
Consider the 3 transactions T1,T2 and T3 and schedule S1 &S2 given CO4 L2 8M
below. Determine whether each schedule is serializable or not? If
serializable, write down the equivalent serial schedule (S)
T1:R1(x),R1(z),W1(x);
21
T2:R2(x),R2(y),W2(z),W2(y);
T3:R3(x),R3(y),W3(y);
S1:R1(x),R2(z);R3(z);R3(x);R3(y);W1(x);W3(y);R2(y);W2(z);W2(y);
S2:R2(x);R2(z);R3(x);R1(z);R2(y);W1(x);W2(z);W3(y);W2(y);

What is schedule? Explain conflict and view serializability schedule with CO4 L2 8M
22
example.

Course Faculty
(Lakshmi Sravani G)

Department of AI &ML, Vemana IT Page 2 of 2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy