Questions - DBMS
Questions - DBMS
1. A travel agency maintains various taxis. The list of drivers and their licence number is
also maintained by them. A log book maintains details about tours that might have
taken place along with date, location and drivers name and other details.
3. What are the functional components of DBMS? Explain with neat sketch.
i) Data isolation
i. View
22. Who are all the database users present in DBMS? List out the functions of DBA
24. A university registrar’s office maintains data about the following entities:
25. Live five responsibilities of a database management system for each responsibility
explain the problems that would arise if the responsibility were not discharged.
26. Considertherelationaldatabase
a) Find the names of all employees who live in the same city and on the same
street as do their managers.
b) Find the names of all employees in this database who do not work for “First
Bank Corporation”.
c) Findthenamesofallemployeeswhoearnmorethaneveryemployee of “Small Bank
Corporation”.
d) Find emp_name, street & cities of residence whose salary exist in between
30,000 to 40,000 & works for XYZ Ltd.
27. Specify CODD’s norms to be satisfied by RDBMS
28. Explain Natural join Operation and division operation in relational algebra with
example.
R = (A, B, C) S = (D, E, F)
Let the relation r(R) and s(S) be given. Give an expression in SQL that is equivalent to
each of the following queries :
i) πA( r )
ii) σB=23( r )
iii) r×s
iv) π A,F(σC=D(r XS))
32. student(ID, name, dept name, tot cred)
for above consider the following expressions, which use the result of a
relationalalgebra operation as the input to another operation. For each
expression,explain in words what the expression does.
a. σyear≥2009(takes)⋈student
b. σyear≥2009(takes ⋈student)
c. π ID,name,course id(student ⋈takes)
33. employee (person name, street, city)
A->B,CD->E,A->C,B->D,E->A.
A B C
A1 B1 C1
A1 B1 C2
A2 B1 C1
A2 B1 C3
10. Let R=(A,B,C,D,E) and let M be the following set of multivalued dependencies.
ii) Give the names of employees who are working on ‘blood bank’project.
ii) Find names of all parts whose cost is more than Rs. 25
iv) Find name of supplier and parts with its color and cost.
20. What are different types of joins in SQL? Explain with suitable example.
21. Consider following database :
ii) Find how many students have failed in the subject “DBMS”.
22. Consider the following Relations. It defines the schema of the database application for
a bank. It manages the branches and customers of the bank. Customers take loans
(borrow money) or open accounts (deposit money) at one or more branches.
2) Find loan data, ordered by decreasing amounts, then increasing loan numbers.
3) Find the pairs of names of different customers who live at the same address but
have accounts at different branches.
23. Consider the following Relations. It defines the schema of the database application for
a library.
1) List the ISBN and title of all books written by “John Smith”.
2) List the ISBN and title of all books written by “John Smith” as the only author.
3) List the Card number and name of all borrowers who checked out two or more
books on 10/16/2003.
4) List the branch ID and name of all library branches that have at least one copy of all
the books.
24. Explain with suitable example SQL aggregate functions.
25. Write the syntax for following SQL commands :
i) create table ii) alter table iii) drop tableiv) insert v) delete vi) update
26. Consider the following database.
1) Find out all Doctors who have visited to Hospital in same city in which they live.
i. Design above relation tables using SQL DDL statements, primary key and
foreign key
ii. Find the names and average salaries of all departments whose average salary is
greater than 42000.
Unit 3
8. What is materialization?
9. What is pipelining?
10. Explain the concept of transaction. Describe ACID properties for transaction.
11. Define serializable schedule. Explain two forms of serializability.
12. Define the sarializability. Give test for conflict serializability. Check whether
following schedule is conflict serializable.
T1 T2
Read(A)
Write (A)
Read(A)
Write(A)
Read(B)
Write(B)
Read(B)
Write(B)
13. How does the granularity of data items affect the performance of concurrency control?
What factors affect the selection of granularity size of data items ?
14. Illustrate difference between conflict serializable schedule and view serializable
schedule by an appropriate example.
15. What are two types of errors that may cause a transaction to fail?
16. Explain Stored procedure and stored function.
17. Explain Assertion and Triggers with suitable example.
18. What is cursor ? Explain with suitable example.
19. List difference between embedded SQL and Dynamic SQL.
20. Write short note on Dynamic SQL.
21. Describe the concept of cursor and how it is used in embedded SQL. Explain various
commands in embedded SQL.
22. Describe the circumstances in which you would choose to use embedded SQL rather
than using SQL alone or using only a general purpose programming language? List
various embedded commands.
23. Explain the need for embedded SQL. List various embedded commands.
24. Explain recoverable and cascade less schedules.
1. Describe the three level architecture of DBMS. Explain how it is useful for achieving data
independence.(5)
2. When are two schedules said to be view equivalent? (5)(2)
3. List the responsibilities of DBA. (5)
4. Describe DROP TABLE command of SQL with both the options CASCADE & RESTRICT. (5)
5. Write short note on: Mapping of ISA relationship of E-R diagram to tables. (4)
6. State & explain (any 6) Codd's norms for RDBMS. (6)
7. Why are cursors necessary in embedded SQL? (5)
8. What are the measures of query cost? (5)
9. Specify codd's Norms to be satisfied by RDBMS. (5)
10. Explain the problem that may arrive if the DBA does not discharge the reponsibilities properly.
(5)
11. Explain different Join operations in Relational Algebra with suitable example. (6)
12. What is Normalization? State & explain 2NF & 3NF. (4)
13. What are the possible causes of transaction failure? Explain the significance of ACID properties.
14. Why is query optimization important for databases?
15. Why are cursors necessary in embedded SQL? (5)(2)
16. Define entity & entity set. What is E-R model? (5)
17. What is query? What do you mean by correlated query?
18. List the properties of decomposition. Explain lossless join with example. (6)
19. What are the steps followed in executing write(X) command in transaction?
20. Define query processing. What are the steps involved in query processing?