Professional Documents
Culture Documents
(Autonomous)
Dundigal, Hyderabad-500043
Programme B.Tech
Semester VII
COURSE OBJECTIVES:
COURSE OUTCOMES :
After successful completion of the course, Students will be able to:
Knowledge Level
CO No Course Outcomes (Bloom’s
Taxonomy)
CO 1 Define database, characteristics, functions of database management Remember
system and types of users to describe large sets of data
CO 2 Compare traditional File Processing System and a Database System Understand
for constructing a database.
CO 3 Describe data models, schemas, instances, view levels and database Remember
architecture for voluminous data storage
CO 4 Model the real world database systems using Entity Relationship Apply
Diagrams from the requirement specification
CO 5 Define the relational data model, its constraints and keys to Remember
maintain integrity of data
CO 6 Define the concept of Relational Algebra and Relational Calculus Remember
from set theory to represent queries.
CO 7 Build queries in Relational Algebra and Relational Calculus to Apply
retrieve desired information
CO 8 Demonstrate the use of SQL for database creation and maintenance Understand
CO 9 Make Use of SQL queries for data aggregation, calculations, views, Apply
sub-queries, embedded queries manipulation
CO 10 Illustrate the definition of Functional Dependencies, Inference rules Understand
and minimal sets of FD’s to maintain data integrity.
CO 11 Apply normalization techniques to normalize a database Apply
CO 18 Design a full real size database system for an industry or business Analyze
scenario.
3 10 10 11 1 5 3 3 12 5 12 12 2 2 2
CO 1 2
CO 2 2 4
CO 3 2 4
CO 4 4 4 3 1
CO 5 2 4
CO 6 2
CO 7 4 4 3 1
CO 8 2 4 4 3 1
CO 9 4 4 3 1
CO 10 2 4
CO 11 4 4 3 1
CO 12 2 4
CO 13 4 4 3
CO 14 2 4 4
CO 15 2 4
CO 16 2 4 4 1
CO 17 4 4 1
CO 18 2 4 4 3 1
MODULE - I
1 Compare and Contrast file Systems with database Understand Recall the concept of basic CO 2
systems. file system and database
system and distinguish
between file Systems with
database systems.
2 Define Data Abstraction and discuss levels of Remember ----- CO 3
Abstraction.
3 Discuss about different types of Data models. Understand Recall the concept of data CO 3
models and classify types
of data models
4 Describe the Structure of DBMS. Understand Recall the concept of CO 3
DBMS and explain the
structure of DBMS.
5 Discuss additional features of the ER-Models. Understand Recall the concept of ER CO 4
model and explain the
features of the ER-Models.
6 Discuss about the Concept Design with the ER Understand Recall the concept of ER CO 4
Model. model and summarize the
Concept Design with the
ER Model.
7 Explain in detail Different types of Data Understand Recall the concept of Data CO 3
Independence with examples. Independence and classify
the Different types of Data
Independence with
examples.
8 Explain different types of database users and write Understand Recall the concept of CO 1
the functions of DBA. database users and then
discuss the functions of
DBA.
9 List out different types of integrity constraints. Remember ----- CO 3
10 Discuss about Different keys used in data base Understand Recall the concept of CO 5
design with examples. database design and then
distinguish Different keys
used in data base design
with examples.
11 Distinguish strong entity set with weak entity set? Understand Recall the concept of entity CO 4
set and then distinguish
strong entity set with weak
entity set.
12 Differentiate relation schema and relational Understand Recall the concept of CO 5
instance? Database system and then
distinguish relation schema
and relational instance
13 List and explain the design issues of entity Remember ----- CO 4
relationship.
14 Construct ER-Diagram for a hospital with a set of Apply Recall and interpret the CO 4
patients and a set of medical doctors. Associated concept of ER-Diagram
with each patient a log of the and sketch ER-Diagram
various tests and examinations conducted. for a hospital
15 Describe about Basic Concepts of ER Model in Remember CO 4
DBMS
16 Explain ER Model, with its Entity and Entity Set? Understand Recall the concept of ER CO 4
Model and paraphrase
about Entity and Entity Set
17 Discuss about ER Model and its Relationships? Understand Recall the concept of ER CO 4
Model and explain
Relationships of ER
Model
18 Discuss about generalization with a neat diagram? Understand Recall the concept of CO 4
database system and
explain generalization
with a neat diagram
19 Explain specialization with a neat diagram? Understand Recall the concept of CO 4
database system and
explain specialization
with a neat diagram
20 Describe about aggregation with a neat diagram? Remember CO 4
Part - C (Problem Solving and Critical Thinking Questions)
1 Construct an E-R diagram for keeping track of the Apply Recall and interpret the CO 4
exploits of your favorite sports team. You should concept of ER-Diagram
store the matches played, the scores in each and sketch ER-Diagram
match, the players in each match and individual for a keeping track of the
player statistics for each match. Summary exploits of your favorite
statistics should be modeled as derived attributes. sports team
Let E1 and E2 be two entities in an E/R diagram Apply Recall and interpret the CO 4
2 with simple single-valued attributes. R1 and R2 concept of ER-Diagram
are two relationships between E1 and E2, where and dramatize the
R1 is one-to- many and R2 is many-to-many. R1 minimum number of tables
and R2 do not have any attributes of their own. required to represent this
Calculate the minimum number of tables required situation in the relational
to represent this situation in model.
the relational model.
Analyze and find whether modifications made at Analyze Recall and interpret the CO 3
3 conceptual level makes application programs concept of View of
written by users at view level to be modified in a database and categorize
database. Analyze your answer with illustration. conceptual level and view
level
4 We can convert any weak entity set to strong Analyze Recall and interpret the CO 4
entity set by simply adding appropriate attributes. concept of entity set of and
Analyze why, then, do we have weak entity sets? categorize weak entity set
to strong entity set
5 What are the responsibilities of a DBA? If we Understand Recall the concept of CO 1
assume that the DBA is never interested in running DBA and explain the
his or her own queries; does the DBA still need to operations done by DBA
understand query optimization? Why?
Describe the structure of a DBMS. If your Remember ----- CO 3
6 operating system is upgraded to support some new
functions on OS files (e.g., the ability to force
some sequence of bytes to disk), which layer(s) of
the DBMS would you have to rewrite to take
advantage of these
new functions.
7 Why relational model became more popular Understand Recall the concept of CO 3
comparing with other record based models? relational model and
summarize with other
record based models
8 Describe the process to convert ER model into Remember ----- CO 4
relation schema.
9 Discuss the disadvantages of file processing Understand Recall the concept of file CO 2
system, and explain how these disadvantages are system and express how
avoided in DBMS? these disadvantages are
avoided in DBMS
10 Design a relational database for a university Remember ----- CO 5
registrar’s office the office maintain data about
each class, including the instructor, the number of
students enrolled, and time and place of the class
Meetings. For each student - class pair, a grade is
recorded.
MODULE - II
RELATIONAL APPROACH
TRANSACTION MANAGEMENT
5 Discuss two phase locking protocol and strict two Understand Recall the concept of CO 13
phase locking concurrent Transaction
protocols? and explain two phase
Locking Protocol
6 Describe Timestamp based locking protocols? Remember ------ CO 13
15 Explain the Check point log based recovery scheme Remember ------ CO 14
for
recovering the database.
16 When a transaction is rolled back under timestamp Remember ------ CO 13
ordering, it is
assigned a new timestamp. Why can it not simply
keep its old timestamp?
17 Consider the following schedule S1. S1=r3(y), Understand Recall the concept of CO 13
r3(z), r1(x), w1(x), w3(y), w3(z), r2(z), r1(y), serializable schedule and
w1(y), r2(y), w2(y), r2(x), w2(x) Check whether verify the given schedule
S1 is serializable or not. If it is serializable, write is serial or serializable.
its equivalent serial schedule.
18 With a neat diagram explain NO-UNDO/NO- Remember ------ CO 14
REDO recovery
mechanism in transaction processing?
19 Explain the serializable and non serializable Remember ------ CO 13
schedule?
20 Suppose that there is a database system that never Remember ------ CO 14
fails. Analyze
whether a recovery manager required for this
system.
Part – C (Problem Solving and Critical Thinking)
1 Consider the following transactions with Understand Recall the concept of CO 12
data items P and Q initialized to zero: serializable schedule and
T1: read(P); verify the given schedule
read(Q); is serial or serializable.
If P=0 then
Q:=Q+1; write(Q);
T2: read(Q);
read(P);
If Q=0 then P:=P+1; write(P);
Solve and find any non-serial interleaving of T1 and
T2 for
concurrent execution leads to a serializable
schedule or non serializable schedule. Explain.
2 Analyze which of the following concurrency Remember ------ CO 13
control protocols
ensure both conflict serializability and freedom
from deadlock?
3 Suppose that we have only two types of Understand Recall the concept of CO 13
transactions, T1 and T2. Transactions preserve serializable schedule and
database consistency when run individually. We solve the given problem.
have defined several integrity constraints such that
the DBMS never executes any SQL statement that
brings the database into an inconsistent state.
Assume that the DBMS does not perform any
concurrency control. Give an example schedule of
two transactions T 1 and T 2 that satisfies all these
conditions, yet produces a database instance that is
not the result of any serial execution of T 1 and T
2.
4 Suppose that there is a database system that never Understand Recall the concept of CO 14
fails. Analyze system failure and check
whether a recovery manager required for this automatic recoverability
system. of system
5 Explain the Immediate database Modification‟ Remember ------ CO 14
technique for using the Log to Ensure transaction
atomicity despite failures.
6 Consider the following actions taken by Understand Recall the concept of CO 13
transaction T1 on database objects X and Y transaction processing and
: R(X), W(X), R(Y), W(Y) find schedule for the
Give an example of another transaction T 2 that, if given problem.
run concurrently to transaction T without some
form of concurrency control, could interfere with
T 1.
1. Explain how the use of Strict 2PL would
prevent interference between the two
transactions.
2. Strict 2PL is used in many database
systems. Give two reasons for its
popularity.
7 Suppliers(sid: integer, sname: string, address: Understand Recall the concept of CO 12
string) Parts(pid: integer, pname: string, color: transaction processing and
string) Catalog(sid: integer, pid: integer, cost: real) find queries in SQl for the
The Catalog relation lists the prices charged for given problem..
parts by Suppliers.
For each of the following transactions, state the
SQL isolation level that you would use and
explain why you chose it.
1. A transaction that adds a new part to a
supplier‟s catalog.
2. A transaction that increases the price that a
supplier charges for a part.
8 Answer each of the following questions briefly. Understand Recall the concept of CO 12
The questions are based on the following relational Locking protocols and
schema: Emp(eid: integer, ename: string, age: explain the queries in
integer, salary: real, did: integer) Dept(did: integer, given scenario.
dname: string, floor: integer)
and on the following update command: replace
(salary = 1.1 * EMP.salary) where EMP.ename =
„Santa‟
1. Give an example of a query that would
conflict with this command (in a concurrency
control sense) if both were run at the same
time.
2. Explain what could go wrong, and how
locking tuples would solve the problem.
3. Give an example of a query or a command that
would conflict with this command, such that
the conflict could not be resolved by just
locking individual tuples or pages but requires
index locking.
9 Suppose that we have only two types of Understand Recall the concept of CO 13
transactions, T 1 and T 2. Transactions preserve transaction processing and
database consistency when run individually. We find Schedule for the
have defined several integrity constraints such that given problem..
the DBMS never executes any SQL statement that
brings the database into an inconsistent state.
Assume that the DBMS does not perform any
concurrency control. Give an example schedule of
two transactions T 1 and T 2 that satisfies all these
conditions, yet produces a database instance that is
not
the result of any serial execution of T 1 and T 2.
10 What are the roles of the Analysis, Redo, and Undo Remember ------ CO 14
phases in
ARIES?
MODULE - V
Prepared by:
K.Rashmi HOD, EEE