CS223 - Database Management Systems Short Answer Questions Set - 1
CS223 - Database Management Systems Short Answer Questions Set - 1
2. Define DBMS.
A database management system (DBMS) is a software package designed to define,
manipulate, retrieve and manage data in a database.
3. What is data independence?
Data independence refers characteristic of being able to modify the schema at one
level of the database system without altering the schema at the next higher level.
There are two types of data independence: Logical Data Independence and Physical
Data Independence.
4. What is data model?
A data model is a collection of concepts that can be used to describe the
conceptual/logical structure of a database
5. List relational algebra operations.
The fundamental operations of relational algebra are as follows −
Select
Project
Union
Set different
Cartesian product
Rename
6. What is view?
8. What is schedule?
A schedule S of n transactions T1, T2, ..., Tn is an ordering of the operations of the
transactions. Operations from different transactions can be interleaved in the
schedule S. Each transaction Ti that participates in the schedule S, the operations
of Ti in S must appear in the same order in which they occur in Ti.
9. What is redundancy?
Redundancy means having multiple copies of same data in the database. This
problem arises when a database is not normalized.
10.Define concurrency?
Feature that allows multiple transactions to execute simultaneously.
11.What is transaction?
A transaction is a logical unit of processing in a database which entails one or
more database access operation. Transaction must be completed in its entirety to
ensure correctness.
SET - 2
8. Define 5NF?
A relation schema R is in fifth normal form (5NF) (or project-join normal form
(PJNF)) with respect to a set F of functional, multivalued, and join dependencies if,
for every nontrivial join dependency JD(R1, R2, ..., Rn) in F+ every Ri is a superkey
of R.
9. What is transaction? Give an example.
A transaction is a logical unit of processing in a database which entails one or
more database access operation. Transaction must be completed in its entirety to
ensure correctness.
One example is a transfer from one bank account to another: the
complete transaction requires subtracting the amount to be transferred from one
account and adding that same amount to the other.
Binary locks
Read/write locks
Certify locks
Intention locks
In fuzzy checkpointing, at the time of checkpoint, all the active transactions are
written in the log. In case of power failure, the recovery manager processes only
those transactions that were active during checkpoint and later. The transactions
that have been committed before checkpoint are written to the disk and hence need
not be redone.
SET – 3
1. What is database?
A database is a collection of related data. data, means known facts that can be
recorded and that have implicit meaning.
8. What is normalization?
Normalization of data can be considered a process of analyzing the given
relation schemas based on their FDs and primary keys to achieve the desirable
properties of (1) minimizing redundancy and (2) minimizing the insertion,
deletion, and update anomalies
9. What is lossless join property?
It is a desirable property of decomposition. According to lossless join property,
when a relation is decomposed into a set of sub-relations and when the sub-
relations are joined back, the resulting relation should be same as the original
relation. It ensures that no spurious tuples are generated when a NATURAL
JOIN operation is applied to the sub-relations.
SET – 4
1. Define DBMS?
2. Define schema and instance?
Schema is the formal description of the structure of database
whereas Instance is the set of information currently stored in a database at a
specific time.
3. Define entities and entities set?
Entity is a real world object that exists either physically or conceptually.
An entity set is a set of entities of the same type
8. Define BCNF
A relation schema R is in BCNF if whenever a nontrivial functional dependency
X →A holds in R, then X is a superkey of R.
9. Define transactions
10.Define log.
To be able to recover from failures the database system maintains a log to keep
track of all transaction operations that affect the values of database items, that
may be needed to permit recovery from failures. The log is a sequential, append-
only file that is kept on disk.
SET – 5
1. Define database?
2. What is schema?
3. What is data independence?
SET – 6
1. What is DBMS?
2. Define data model?
5. Define DRC?
Domain relational calculus (DRC) is a declarative database query language for the
relational data model.
9. What is schedule?
12.Define sub-query?
A subquery is a SELECT statement that is embedded in a clause of another
SELECT statement. That other select statement/query is called the outer query.
SET – 7
1. What is DBMS? What are its advantages?
2. Define Schema and Instance.
12.What is recovery?
SET – 8
1. Define database.
2. What is schema?
3. What is data independence?
4. What is week entity set?
5. List relational algebra operators.
6. What is DDL &DML?
7. What is primary key?
8. Define 1NF.
9. What is schedule?
10. Define log.
11. What is concurrency?
12. What is shadow paging?
SET – 9
Database creation
Database Updation (This includes Insertion, deletion and modification
operations)
Database Lookup
3. What are the rule that should be satisfied by the foreign key?
5. What are the rules for writing formulas in tuple relational calculus?
Rule 1: Every atom is a formula.
Rule 2: If F1 and F2 are formulas, then so are (F1 AND F2), (F1 OR F2),
NOT (F1), and NOT (F2).
Rule 3: If F is a formula, then so is (∃t)(F), where t is a tuple variable.
Rule 4: If F is a formula, then so is (∀t)(F), where t is a tuple variable.
9. Define serializability.
The concept of serializability of schedules is used to identify which schedules
are correct when transaction executions have interleaving of their operations in
the schedules.
SET – 12
SET – 13
4. What is query?
A query is a request for data or information from a database. Query can be
specified on a database by using various query languages. SQL is one such query
language.
SET – 14
1. Define DBMS.
SET – 15
1. Define data model and list its types.
High-level/ Conceptual Data Model
Implementation/Representation Data Model
Physical Data Model.
2. State any five good heuristic strategies that are used in query
optimization.
i. Break up any SELECT operations with conjunctive conditions into a
cascade of SELECT operations.
ii. Move each SELECT operation as far down the query tree as is permitted
by the attributes involved in the select condition.
iii. Combine a CARTESIAN PRODUCT operation with a subse- quent
SELECT operation in the tree into a JOIN operation, if the condition
represents a join condition.
iv. Break down and move lists of projection attributes down the tree as far
as possible by creating new PROJECT operations as needed.
v. Identify subtrees that represent groups of operations that can be
executed by a single algorithm.
SET – 16
1. Define data.
2. What is a composite attribute?
Composite attributes can be divided into smaller subparts, which represent
more basic attributes with independent meanings. For example, the Address
attribute of the EMPLOYEE entity can be subdivided into Street, address, City,
State, and Zip
Normal or Full Backups - runs on a selected drive, all the files on that drive
are backed up.
Incremental Backups - will grab only the files that have been updated since
the last normal backup
Differential Backups
Daily Backups
10.What is join?
The JOIN operation, is used to combine related tuples from two relations into
single “longer” tuples. This operation is very important for any relational
database with more than a single relation because it allows us to process
relationships among relations.