0% found this document useful (0 votes)
13 views3 pages

Database Systems (CSE2224) (Makeup)

This document is a question paper for the Fourth Semester B.Tech Degree Examinations in Database Systems at Manipal Academy of Higher Education, scheduled for June 24, 2024. It includes various questions related to relational algebra, storage management, transaction scheduling, SQL queries, normalization, and ER diagrams, covering a range of topics in database systems. The exam consists of multiple sections with a total of 50 marks and a duration of 180 minutes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Database Systems (CSE2224) (Makeup)

This document is a question paper for the Fourth Semester B.Tech Degree Examinations in Database Systems at Manipal Academy of Higher Education, scheduled for June 24, 2024. It includes various questions related to relational algebra, storage management, transaction scheduling, SQL queries, normalization, and ER diagrams, covering a range of topics in database systems. The exam consists of multiple sections with a total of 50 marks and a duration of 180 minutes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Question Paper

Exam Date & Time: 24-Jun-2024 (02:30 PM - 05:30 PM)

MANIPAL ACADEMY OF HIGHER EDUCATION


FOURTH SEMESTER B.TECH. DEGREE EXAMINATIONS - JUNE 2024
SUBJECT: CSE 2224/CSE_2224 - DATABASE SYSTEMS
(SPL: COMPUTER SCIENCE AND ENGINEERING - ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING / COMPUTER
SCIENCE / COMPUTER SCIENCE AND ENGINEERING - CYBER SECURITY)
DATABASE SYSTEMS [CSE 2224]
Marks: 50 Duration: 180 mins.

A
Answer all the questions.

1A) Consider A factory schema with two relations: Worker(WID, Name, Salary, Role) (5)
Factory( Dept_ID, DName, WID, budget)
Write queries in relational algebra for the following questions:
i) Obtain the total number of employees working in each dept
ii) List employee ID, for those with salary greater than max budget amongst all departments
iii) Obtain max budget without using aggregate functions
1B) Specify the different components of storage manager in database system. Mention the data (3)
structures used as part of the physical system implementation of storage manager and also indicate
why are they needed?
1C) Assume basic timestamp ordering protocol and that time starts from 1, each operation takes unit (2)
amount of time and start of Transaction Ti is denoted as Si. The table of timestamp is given below:

Calculate rts(a),wts(a),rts(b) and wts(b) at the end of time 9.


2A) Which of the following schedules is (conflict) serializable? For each serializable schedule, determine (4)
the equivalent serial schedules.
i) r1(X); r3(X); w1(X); r2(X); w3(X)
ii) r1(X); r3(X); w3(X); w1(X); r2(X)
iii) r3(X); r2(X); w3(X); r1(X); w1(X)
iv) r3(X); r2(X); r1(X); w3(X); w1(X)
2B) Consider the below E-R diagram for the following problem statement: "Each Project entity is (3)
sponsored by one or more Department entities and each Department can sponsor zero, one or
more Projects. Each Sponsorship relationship has a Monitors relationship, which connects
Page 1 of 3
Employees with Sponsorship." Modify the E-R diagram to use aggregation. Also add an additional
constraint that each Sponsorship relationship is monitored by at most one Employee.

2C) Justify with appropriate examples in which cases is it bad to employ "ON UPDATE CASCADE" or (3)
"ON DELETE CASCADE" for foreign keys? Why does this mechanism exist at all?
3A) Consider the following tables: (4)
Customers(cid,cname, rating, age)
Cars(carid, carname, color)
Reserves(cid,carid,day)
Write the SQL queries for the following:
i) Find all information of customers who have reserved carid 101.
ii) Find the names of customers who have reserved a red car and list in the order of age.
iii) Find the ids of customers who have reserved a red car or a green car.
iv) Find the names of customers who have reserved all cars.
3B) i) Give the BCNF rules of decomposition of a functional dependency which is not in BCNF. (4)
ii) Consider a relational schema R= (A, B, C, D , E) with set of functional dependencies are given as
F= {A → B, BC → D} where R is decomposed into R1( AB) and R2(ACDE). Check whether the
functional dependencies are preserved or not
3C) Describe the purpose and functionality of the SQL GROUP BY clause. How does GROUP BY differ (2)
from the WHERE clause?
4A) Consider the following two transactions and schedule (time goes from top to bottom). (3)

i) Is this schedule conflict-serializable? Explain why or why not.


ii) Show how 2PL can ensure a conflict-serializable schedule for the same transactions given. Use
the notation L i[A] to indicate that transaction i acquires the lock on element A and Ui[A] to indicate
that transaction i releases its lock on A.
4B) In a relational database design. Consider given relation schema R = (A, B, C, D, E, F, G, H) and the (4)
following set of functional dependencies: F = { A → B ABCD → E EF → G EF → H ACDF → EG }
i) Compute the canonical cover for F.
ii) Decompose R into 3rd Normal Form.
iii) Prove that your 3NF decomposition is a lossless join.
Page 2 of 3
4C) Draw an ER diagram for the following requirements. (3)
Consider a MAIL_ORDER database in which employees take orders for parts from customers. The
data requirements are summarized as follows:

The mail order company has employees, each identified by a unique employee number, first
and last name, and ZIP code.
Each customer of the company is identified by a unique customer number, first and last
name, and ZIP code.
Each part sold by the company is identified by a unique part number, a part name, price,
and quantity in stock.
Each order placed by a customer is taken by an employee and is given a unique order
number. Each order contains specified quantities of one or more parts. Each order has a
date of receipt as well as an expected ship date. The actual ship date is also recorded.

5A) Consider the given fixed-length table. Consider the deletion of record 5 from the given Figure. (2)
Compare the relative merits of the following techniques for implementing the deletion:
i) Move record 6 to the space occupied by record 5 and move record 7 to the space occupied by
record 6.
ii) Mark record 5 as deleted and move no records.

5B) Analyse the utilization of logs in the context of redo and undo operations within transactions. (4)
Develop a suitable example to illustrate the practical implementation of redo and undo operations.
5C) Consider the following actions taken by transaction T1 on databases X and Y: R(X), W(X), R(Y), (4)
W(Y)
i) Give an example of another transaction T2 that, if run concurrently to transaction T1 without some
form of concurrency control, could interfere with T1.
ii) Explain how the use of Strict 2PL would prevent interference between the two transactions.

-----End-----

Page 3 of 3

You might also like