07a70307 Databasemanagementsystems
07a70307 Databasemanagementsystems
07a70307 Databasemanagementsystems
2
IV B.Tech I Semester Examinations,December 2011
DATA BASE MANAGEMENT SYSTEMS
Common to Mechanical Engineering, Electronics And Computer
Engineering, Electronics And Telematics, Electronics And Communication
Engineering
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
(a) Find the names of all employees who work for First Bank Corporation.
(b) Find the names and cities of residence of all employees who work for First
Bank Corporation.
(c) Find the names, street address, and cities of residence of all employees who
work for First Bank Corporation and earn more than $10,000 per annum.
(d) Find the names of all employees in this database who live in the same city as
the company for which they work. [16]
1
Code No: 07A70307 R07 Set No. 2
(c) Give all managers of First Bank Corporation a 10 percent raise.
(d) Give all managers of First Bank Corporation a 10 percent raise unless the
salary becomes greater than $100,000; in such cases, give only a 3 percent
raise. [4+4+4+4]
8. ARIES assumes there is space in each page for an LSN. When dealing with large
objects that span multiple pages, such as operating system files, an entire page may
be used by an object, leaving no space for the LSN. Suggest a technique to handle
such a situation; your technique must support physical redos but need not support
physiological redos. [16]
?????
2
Code No: 07A70307 R07 Set No. 4
IV B.Tech I Semester Examinations,December 2011
DATA BASE MANAGEMENT SYSTEMS
Common to Mechanical Engineering, Electronics And Computer
Engineering, Electronics And Telematics, Electronics And Communication
Engineering
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Describe the two phase locking protocol with the help of example.
(b) What are the basic properties of a transaction? Explain these properties with
the help of examples. [8+8]
3. (a) What is a relation? Differentiate between relation schema and relation in-
stance. Define the terms unity and degree of relation.
(b) What are integrity constraints over relations? How to enforce these con-
straints? [8+8]
4. Construct and explain an E-R diagram for a car-insurance company whose cus-
tomers own one or more cars each. Each car has associated with it zero to any
number of recorded accidents. [16]
7. If you were about to create an index on a relation, what consideration would guide
your choice? Discuss:
4
Code No: 07A70307 R07 Set No. 1
(a) The choice primary index.
(b) Clustered versus unclustered indexes
(c) Hash versus tree indexes
(d) The use of a sorted file rather than a tree-based index. [16]
8. (a) Write about the people who are dealing with databases.
(b) What is a data model? Explain the relational data model. [8+8]
?????
5
Code No: 07A70307 R07 Set No. 3
IV B.Tech I Semester Examinations,December 2011
DATA BASE MANAGEMENT SYSTEMS
Common to Mechanical Engineering, Electronics And Computer
Engineering, Electronics And Telematics, Electronics And Communication
Engineering
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
4. Design an E-R diagram for keeping track of the exploits of your favourite sports
team. You should store the matches played, the scores in each match, the players
in each match and individual player statistics for each match. Summary statistics
should be modeled as derived attributes. [16]
6
Code No: 07A70307 R07 Set No. 3
(c) Find the sids of suppliers who supply every red or green part.
(d) Find the sids of suppliers who supply every red part or supply every green
part. [4+4+4+4]
6. (a) What are views? Discuss the problems encountered in modifying database
through views?
(b) What is an embedded SQL? Give examples. [10+6]
?????