Docsity

DBMS PAPERS FOR INTERVIEW, Exercises of Database Management Systems (DBMS)

Toggle sidebar
bg1
1.
2.
3.
Y/K/TX
4.
VIT
VIT
Vellore
Institute
of
O
echnolog
Course:
X>Y
KEEPING
MOBILE
PHONE/ELECTRONIC
DEVICES
EVEN
IN
OFF
POSITION
IS
TREATED
AS
EXAM
MALPRACTICE
>
DON'T
WRITE
ANYTHING
ON
THE
QUESTION
PAPER
Y-’Z
Final
Assessment
Test
-
November
2024
BCSE302L
-Database Systems
Z->W
Class
NBR(S):
1509/1516/1527/1532/1536/1543/1547/
W’X
1553/1557/1566/1578/1599/1609/1646/1659/1678/
1687/1700/1710/1723/1733/1762
Reg.
No:
Time:
Three
Hours
Discuss
three-schema
architecture
used
in
database
management.
What
are
the
key
components,
and
how
do
they
interact
with
each
other?
Why
do
we
need
mappings
between
schema
levels?
Answer
ALL
Questions
Design
an
Entity-Relationship
Diagram
(ER
Diagram)
for
a
Hospital
Management
System
(HMS)
that
enables
the
registration
and
management
of
patient
information,
including
demographics,
medical
history,
and
current
conditíon,
while
featuring
a
doctor
directory
that
maintain
details
such
as
specialties,
contact
information,
and
availability.
The
system
should
assist
in
room
management
by
identifying
available
and
occupied
rooms,
and
handle
nurse
information,
including
departmental
assignments
and
shift
schedules.
Additionally,
it
must
provide
functionality
for
generating,
storing,
and
retrieving
patient
test
reports
with
detailed
results
and
dates,
while
managing
records
through
unique
identification
numbers
for
easy
reference.
Billing
functionality
is
crucial
for
handling
billing
information,
including
bill
generation
and
payment
tracking,
and
the
system
should
support
receptionist
functions
for
retrieving
patient
data
and
scheduling
appointments.
Your
task
is
to
create
an
ER
diagram
that
includes
relevant
entities,
attributes
and
relationships,
indicating
cardinality
and
participation
constraints.
(10
X 10 =
100
Marks)
Discuss
the
concepts
of
generalization
and
specialization
in
database
design,
using
the
extended
entity-relationship
model
as
a
framework.
Provide
examples
to
illustrate
these
concepts
and
analyze
the
various
types
of
constraints,
including
disjointness
and
completeness,
and
their
impact
on
subclass
relationships
and
the
overall
superclass
structure.
Consider
relation
R(X,Y,Z,W,V)
with
the
following
functional
dependencies:
Slot:
A1+TA1
The
decomposed
Relations
are
R1(X,Y,Z)and
R2(Z,W,V).
Check
if
the
given
dependencies
are
preserved
or
not.
Max.
Marks:
100
Page
1
of
3
pf3

Partial preview of the text

Download DBMS PAPERS FOR INTERVIEW and more Exercises Database Management Systems (DBMS) in PDF only on Docsity!

Y/K/TX

VIT

VIT

Vellore Institute ofO echnolog

Course:

X>Y

KEEPING MOBILE PHONE/ELECTRONIC DEVICES EVEN IN OFF POSITION IS TREATED AS EXAM MALPRACTICE > DON'T (^) WRITE (^) ANYTHING ON THE (^) QUESTION PAPER

Y-’Z

Final Assessment^ Test^ -^ November^2024 BCSE302L - Database Systems

Z->W

Class NBR(S): 1509/1516/1527/1532/1536/1543/1547/

W’X

Reg. No:

Time: Three Hours

Discuss three-schema architecture used in database management. What are the

key components, and how do they interact with each other? Why do we need

mappings between schema levels?

Answer ALL Questions

Design an Entity-Relationship Diagram (ER Diagram) for a Hospital Management System (HMS) that enables the registration and management of patient

information, including demographics, medical history, and current conditíon,

while featuring a doctor directory that maintain details such as specialties, contact information, and availability. The system should assist in room management by identifying available and occupied rooms, and handle nurse

information, including departmental assignments and shift schedules.

Additionally, it must provide functionality for generating, storing, and retrieving

patient test reports with detailed results and dates, while managing records

through unique identification numbers for easy reference. Billing functionality is

crucial for handling billing information, including bill generation and payment

tracking, and the system should support receptionist functions for retrieving

patient data and scheduling appointments. Your task is to create an ER diagram

that includes relevant entities, attributes and relationships, indicating cardinality

and participation constraints.

(10 X10= 100 Marks)

Discuss the concepts of generalization and specialization in database design,

using the extended entity-relationship model as a framework. Provide examples

to illustrate these concepts and analyze the various types of constraints, including

disjointness and completeness, and their impact on subclass relationships and the overall superclass structure. Consider relation R(X,Y,Z,W,V) with the following functional dependencies:

Slot: A1+TA

The decomposed Relations are R1(X,Y,Z)and R2(Z,W,V). Check if the given

dependencies are preserved or not.

Max. Marks: 100

5

7

9.a)

Consider the^ relation^ R(P,Q,R,S,T,U,V,W)X,Y)with^ the^ following^ set^ of^ functional

dependencies: PQ>R P’ST Q>UV U>WX S>Y

Normalize the schema into Third Normal Form (3NF). Provide the resulting

relations and explain the decomposition process for any violations encountered.

Consider you are the database administrator for an e-commerce platform that processes customer orders and manages payment transactions. When users transfer funds between their accounts, the system ensures that funds are only deducted after the user confirms the transaction. Simultaneously, the platform allows customers to place orders, reflecting inventory changes in real-time to prevent overselling of items. To safeguard against system failures, the application creates backup copies of database pages for quick recovery. This layered database recovery approach aims to maintain data integrity and reliability while providing a seamless user experience, even in the event of a transaction error or system crash. i) ldentify and describe the approach taken for handling fund transfers and explain why this method is suitable for the above scenario. i) Explain the backup strategy implemented for recovering the database. How does this method enhance the recovery process, and what are its limitations?

Identify and justify how the following concurrency control problems affect data

integrity and consistency in a multi-user environment.

S1: r1(x);r2(:);w1(x);r3(x);w2(*);c2;r4(x);w3(x);c3,w1(y),c1;

S2: rl(x);w1();r2(:);w2(:);c2;r3(*);c3,w1(y)}c1;

S3: r1(x); w1(x); r2(x); w2(x); r1(x); Explain the CAP theorem and its implications for distributed system databases. Analyze how the CAP theorem influences the database design choices of an online shopping platform, focusing on the trade-offs between consistency, availability, and partition tolerance.

Show the B+ tree that would be formed by inserting the month names (12 strings) into a tree in their normal calendar sequence (jan, teb, mar, apr, may, jun, jul, aug, sep, oct,^ noV,^ dec).^ After^ the^ construction,^ delete^ the^ entries^ for^ dec^ and mar. OR