DBMS Questions Answers
DBMS Questions Answers
Ans.
1. Schema definition
2. Storage structure and access method definition
3. Schema and physical organization and
modification
4. Granting of authorization for data access
Ans.
1. Database Level
2. Table Level
3. Page Level
4. Row Level
C. Importance of log:
2. Relational model:
a. The relational model represents data
and relationships among data by a
collection of tables, each of which has a
number of columns with unique names.
b. Relational data model is used for data
storage and processing.
c. This model is simple and it has all the
properties and capabilities required to
process data with storage efficiency.
3. Hierarchical model:
a. In hierarchical model data elements are
linked as an inverted tree structure (root
at the top with branches formed below).
b. Below the single root data element are
subordinate elements each of which in
turn has its own subordinate elements and
so on, the tree can grow to multiple
levels.
c. Data element has parent child
relationship as in a tree.
4. Network model:
a This model is the extension of
hierarchical data model.
b. In this model there exist a parent child
relationship but a child data element can
have more than one parent element or no
parent at all.
5. Object-oriented model:
a. Object-oriented models were introduced
to overcome the shortcomings of
conventional models like relational,
hierarchical and network model.
b. An object-oriented database is
collection of objects whose behaviour,
state, and relationships are defined in
accordance with object oriented concepts
(such as objects, class, etc.).
b. State the procedural DML and non-procedural
DML with their differences.
S.
Procedural DML Non-procedural DML
No.
3. Its semantics are quite tough. Its semantics are very simple.
4. It returns only restricted data types and allowed values. It can return any data type or value
7. It is not suitable for time critical applications. It is suitable for time critical applic
Iterative loops and Recursive calls both are used in the Recursive calls are used in Non-Pr
8.
Procedural languages. languages.
Section 4: Database Management System
Aktu Important Notes
a. Consider the following schema for institute
library:
2. select Name
from Student
from Student
4. select Title
from Book
wherePublisher =”ABC”;
A. Primary Rule:
Ans. MVD:
a. X is a subset of Y or
For example:
For example:
The table is in 4NF as there is no multivalued dependency.
Section 6: Serializable
Schedule Important Questions
a. Describe serializable schedule. Discuss con flict
serializability with suitable example.
Schedule S’
ii. Since the write (A) instruction of T2 in Schedule S’ does
not conflict with the read (B) instruction of T1 we can swap
these instructions to generate an equivalent schedule.
iii. Both schedules will produce the same final system state.
Ans. Deadlock:
1. A deadlock is a situation in which two or more
transactions are waiting for locks held by the
other transaction to release the lock.
2. Every transaction is waiting for another
transaction to finish its operations.
Methods to handle a deadlock:
Ans. Schedule S
Difference:
S.
2PC Validation Based Protocol
No.
The 2PC protocol is a blocking Two- The validation based protocol (3PC) is a non-blocking Thr
1.
Phase commit protocol. commit protocol.
For 2PC, the coordinator may abort the For 3PC, the coordinator can abort the transaction globally
2. transaction globally or resend the commit message to the participants or simply send the glob
global decision. all sites that have not acknowledged.