Sunteți pe pagina 1din 7

SHRI VISHNU ENGINEERING COLLEGE FOR WOMEN :: BHIMAVARAM

(AUTONOMOUS)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

R14(R) - II B.Tech II Sem

Database Management Systems

Question Bank

UNIT -I
1 a Write any three data base applications with their functionalities. 6
b Elaborate the importance of Query Processor. 4
2 a Explain the architecture of DBMS with a neat sketch. 7
b Write the functionalities of Storage Manager. 3
3 a Differentiate File systems and DBMS. 6
b How do you classify data base users? Explain. 4
4 a What is data independence? How do you implement data independence 6
in DBMS? Explain.
b Write the functionalities of DBA. 4
5 a Explain various data models in DBMS. 8
b Define instance and schema. 2
6 a Explain the difference between two-tier and three-tier architectures. 6
b Write the significance of transaction management. 4
7 a Compare and Contrast various Data Models 6
b Explain the functionalities of DML. 4
8 a Which data structures are maintained by storage manager? Explain. 3
b Explain the functionalities of DDL. 3
c How data abstraction is implemented in DBMS. Explain. 4
9 a Explain the Database Design for a University Organization. 5
b List six major steps that you would take in setting up a database for a 5
particular enterprise.
10 a Explain the major advantages of a database system. What are two 6
disadvantages?
b Explain the concept of physical data independence and its importance 4
in database systems.
UNIT -II
1 a Explain the data base design with E/R Model for bank Management 6
System.
b Elaborate the importance of Aggregation in E/R model. 4
2 a Explain the data base design with E/R Model for Library Management 5
System.
b Explain specialization and generalization in E/R model. 5
3 a Explain the data base design with E/R Model for Airline Management 5
System.
b Write the additional features of E/R Model. 5
4 a Explain the data base design with E/R Model for Super Market 7
Management System.
b How many different types of attributes are represented in E/R diagram? 3
Explain.
5 a Explain the data base design with E/R Model for Employee 6
Management System.
b What types of relationships can be expressed in E/R diagram? Explain 4
them with an example.
6 a Explain the data base design with E/R Model for Employee 7
Management System.
b How do you represent cardinalities, roles, weak entities and weak 3
relations in E/R diagram? Explain.

7 a Explain the data base design with E/R Model for Employee 7
Management System.
b Explain the importance of unique, primary, composite, super and 3
foreign keys.
8 a Explain the data base design with E/R Model for University 8
Management System.
b How do you represent total participation in E/R diagram? Explain 2
9 Design a database for an airline. The database must keep track of 10
customers and their reservations, flights and their status, seat
assignments on individual flights, and the schedule and routing of
future flights. Your design should include an E-R diagram, a set of
relational schemas, and a list of constraints, including primary-key and
foreign-key constraints.
10 a Explain the data base design with E/R Model for Car Insurance 6
Company
b Construct an E-R diagram for a hospital with a set of patients and a set 4
of medical doctors. Associate with each patient a log of the various
tests and examinations conducted.
UNIT -III
1 Explain various operations on relational algebra in detail. 10
2 a Explain the purpose of creating a View. How do you destroy, alter and 5
update views.
b Explain various integrity constraints that can be enforced on a table. 5
3 a Create a table with primary key, default, unique, check, not null 4
constraints.
b Create a view of all books and its number of copies that are currently 6
available in the Library.
Consider the following schema for a Library Database:
BOOK (Book_id, Title, Publisher_Name, Pub_Year)
BOOK_AUTHORS (Book_id, Author_Name)
PUBLISHER (Name, Address, Phone)
BOOK_COPIES (Book_id, Branch_id, No-of_Copies)
BOOK_LENDING (Book_id, Branch_id, Card_No, Date_Out,
Due_Date)
LIBRARY_BRANCH (Branch_id, Branch_Name, Address)
4 Consider the Bank Management System. 10
account(account_number, branch_name, balance)
branch (branch_name, branch_city, assets)
customer (customer_name customer_street, customer_city)
loan (loan_number, branch_name, amount)
depositor((customer_name, account_number)
borrower(customer_name, loan_number)
Answer the following queries using relational algebra operators.
1. List all branch names and their assests
2. List all accounts of Brooklyn branch
3. List all loans with amount > 1000.
4. List all accounts of Perryridge branch with balance < 1000.
5. List Numbers of accounts with balances between 700 and 900
5 Consider the following schema for company database 10
Employee (Name, ESSN, Salary, DNo, SuperSSN);
Department(DName, DNos, MGRSSN);
Project(PName, PNo, DNum);
Works_ON(ESSN, PNo, Hours);
Dependent(ESSN, DName, Sex);
Write the queries in Relational Algebra
1. List the name of employees with their dependants
2. Find the name of employees who work in department cse
3. Retrieve the name of managers, dept names with salaries.
4. Display the names of employees with their project names.
5. Display the name of the employees with number of hours
working.
6 Explain the use of project, select, union, interest, join, divide and 10
rename operations in detail.
7 Sailors (sid:string, sname:string, rating:integer, age:real)
Boats (bid:integer, bname:string, color:string)
Reserves (sid:integer, bid:integer, day:date)
Based on the above schemas answer the following queries.
Based on the above schema, write the corresponding Relational
Algebra queries for the following?
1. Find the colors of boats reserved by Lubber.
2. Find the names of sailors who have reserved a boat.
3. Find the names of sailors who have reserved a red or green
boat.
4. Print the sailor’s names with date of reservation.
5. Print the ratings of the sailors with boat names.

UNIT -IV
1 account(account_number, branch_name, balance) 10
branch (branch_name, branch_city, assets)
customer (customer_name customer_street, customer_city)
loan (loan_number, branch_name, amount)
depositor((customer_name, account_number)
borrower(customer_name, loan_number)
Write the queries in SQL.
1. For all customers who have a loan from the bank, find their
names, loan numbers, and loan amount.
2. Find the customer names, loan numbers, and loan amounts, for
all loans at the Perryridge branch.
3. Find the names of all branches that have assets greater than
those of at least one branch located in Brooklyn.
4. Find the average account balance of those branches where the
account balance is greater than Rs. 1200.
5. Find the maximum across all branches of the total balance at
each branch.
2 Consider the SAILOR DATABASE 10
Sailors (sid:string, sname:string, rating:integer, age:real)
Boats (bid:integer, bname:string, color:string)
Reserves (sid:integer, bid:integer, day:date)
Based on the above schemas answer the following queries.
Based on the above schema, write the corresponding SQL queries for
the following?
6. Find the colors of boats reserved by Lubber.
7. Find the names of sailors who have reserved at least one boat.
8. Find the names of sailors who have reserved a red or green
boat.
9. Find the names of the sailors who have reserved both a Red
boat and a Green boat.
10. Find names of sailors who have reserved all boats.
3 a What is the usage of ‘group by’ and ‘having’ clauses in SQL? 4
b Consider the following schema to write queries in SQL. 6
Sailor(sid, sname, age, rating)
Boats(bid, bname, bcolor)
Reserves(sid,bid,day)
a) Find the boats reserved by sailor with id 567.
b) Find the names of the sailors who reserved ‘red’ boats.
c) Find the boats which have at least two reservations by different
sailors.
4 a Write short notes on difference, union, rename and Cartesian product 6
operations in relational algebra.
b Explain the SQL Aggregate operators with an example. 4
5 a Explain the operators in SQL with examples. 4
a) Some b) In c) Exits d) Except
b Explain the purpose of creating a Trigger with an example. 6
6 a Explain nested queries and correlated queries with examples. 4
b Explain various types of Joins available in SQL with examples 6
7 a Explain the importance of AND, OR and NOT in SQL with examples. 4
b Consider following relations and write SQL queries for given 6
statements.
Assume suitable constrains.
Instructor(ID, Name, Dept_name , Salary)
Teaches(ID, Course_id, Sec_id, Semester(even/odd),Year)
1) Find the average salary of the instructors in computer department.
2) Find the number of instructors in each department who teach a
course in even semester of 2016.
3) Find the names of instructor with salary amounts between 30000
and 50000.
8 a Write a PL/SQL program to compute the sum of digits of a given 5
number.
b Explain the importance of cursor with an example. 5
9 a Create a function and procedure in PL/SQL to compute factorial of a 7
given number
b How PL/SQL handles exceptions. Explain with an example. 3
UNIT -V
1 Explain FIRST, SECOND and THIRD normal forms with examples. 10
2 a Explain BCNF and the properties of decompositions. 7
b Write the properties of functional dependencies. 3
3 a What is functional dependency? How can you compute the minimal 4
cover for a set of functional dependencies? Explain it with an example.
b Consider schema R = (A, B, C, G, H, I) and the set F of functional 6
dependencies {A → B, A → C, CG → H, CG → I, B → H}. Compute
the candidate keys of the schema. Compute the closure of the same.
4 a Explain the problems related to decomposition. 4
b What is lossless join decomposition? Explain the same with an 6
example.
5 a What is the need of Normalization? Explain the same with an example. 5
b Explain the differences between BCNF and Third normal forms. 5
6 a Elaborate the importance of computing closure of functional 7
dependencies. Explain the procedure with an example.
b List out the problems caused by redundancy. 3
7 Explain dependency preservation and lossless decomposition in detail 10
8 a Explain second and BCNF normal forms with examples. 6
b Why do we need normalization? Explain 4
UNIT -VI
1 a What is a transaction? Write the properties of a transaction. 5
b Justify the need of concurrent transactions. 2
c Explain various Transition states. 3
2 a How do you implement atomicity and durability? Explain. 5
b Explain the importance of shadow paging. 5
3 a How do you classify different type of failures? Explain. 3
b What is View Serializability? Explain. 4
c How do you implement isolation? Explain. 3
4. a Explain the importance of interleaved execution with an example. 5
b What is Conflict Serializability? Explain. 5
5. Explain ARIES algorithm in detail. 10
6. a Explain the following with an example 5
a) Recoverable Schedule b) Cascade less Schedule
b Explain the use of Log to Redo and Undo Transactions 5
7 a Explain the recovery algorithm in detail. 5
b Explain differed and immediate modification of a database. 5
8 a How to test serializability of a schedule? Explain with an example. 5
b What is log? What is log tail? Explain the concept of checkpoint log 5
record.

S-ar putea să vă placă și