Exam Details
Subject | database management systems | |
Paper | ||
Exam / Course | b.tech | |
Department | ||
Organization | Institute Of Aeronautical Engineering | |
Position | ||
Exam Date | November, 2018 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No Question Paper Code: ACS005
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech III Semester End Examinations (Regular) November, 2018
Regulation: IARE R16
DATABASE MANGEMENT SYSTEMS
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Explain Database system structure with a neat sketch.
Construct an E-R diagram for a car-insurance company whose customers own one or more cars
each. Each car has associated with it zero to any number of recorded accidents.
2. Explain in detail the Network and Hierarchical models with examples.
Construct an alternative E-R diagram that uses only a binary relationship between students and
course-offerings. Make sure that only one relationship exists between a particular student and
course-offering pair, yet you can represent the marks that a student gets in different exams of a
course offering.
UNIT II
3. Consider the following schema:
Suppliers integer, sname:string, address: String)
Parts (pid:integer, pname:string, color:string)
Catalog(sid:integer, pid:integer, cost:real)
Write the following queries in relational algebra
i. Find the name of suppliers who supply some red part.
ii. Find the sids of suppliers who supply some red part and some green part.
Define all the variations of the join operation? Can't we express every join operation in terms of
cross product, selection and projection?
4. Consider the relational database of Employee.
employee (person-name, street, city)
works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)
Give a relational-algebra expression for each of the following queries:
i. Find the company with the most employees.
ii. Find the company with the smallest payroll.
iii. Find those companies whose employees earn a higher salary, on average, than the average
salary at First Bank Corporation.
Page 1 of 3
Explain the following:
Tuple relational calculus with an example.
ii) Domain relational calculus with an example.
UNIT III
5. Using the relations of sample bank database, write an SQL expression to define the following
views:
i. A view containing the account numbers and customer names (but not the balances) for all
accounts at the Deer Park branch.
ii. A view containing the names and addresses of all customers who have an account with the
bank, but do not have a loan.
iii. A view containing the name and average account balance of every customer of the Rock Ridge
branch.
Consider the insurance database given below:
person (driver-id, name, address)
car (license, model, year)
accident (report-number, date, location)
owns (driver-id, license)
participated (driver-id, car, report-number, damage-amount)
where the primary keys are underlined. Construct the following SQL queries for this relational
database.
i. Find the total number of people who owned cars that were involved in accidents in 1989.
iii. Find the number of accidents in which the cars belonging to "John Smith" were involved.
iii. Add a new accident to the database; assume any values for required attributes.
iv. Delete the Mazda belonging to "John Smith".
6. Use the definition of functional dependency to argue that each of Armstrong's Axioms (reflexivity,
augmentation, and transitivity) are sound.
Write an SQL trigger to carry out the following action: On delete of an account, for each owner
of the account, check if the owner has any remaining accounts, and if she does not, delete her
from the depositor relation.
UNIT IV
7. List the ACID properties. Explain the usefulness of each.
Consider the following two transactions:
T1:
if A 0then B B
write(B).
T2:
if B 0then A A
write(A).
Let the consistency requirement be A 0 B with A B 0 the initial values.
Page 2 of 3
i. Show that every serial execution involving these two transactions preserves the consistency of
the database.
ii. Show a concurrent execution of T1 and T2 that produces a non serializable schedule.
iii. Is there a concurrent execution of T1 and T2 that produces a serializable schedule?
8. Write short note on Time Stamp based concurrency control.
Consider the following two transactions:
T31:
if A 0then B B
write(B).
T32:
if B 0then A A
write(A).
Add lock and unlock instructions to transactions T31 and T32, so that they observe the two-phase
locking protocol. Can the execution of these transactions result in a deadlock?
UNIT V
9. Demonstrate the typical steps in query processing with a neat sketch?
Briefly discuss about operations on files?
10. Discuss the techniques for allowing a hash file to expand and shrink dynamically. What are the
advantages and disadvantages of each?
What are the several types of ordered indexes?
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech III Semester End Examinations (Regular) November, 2018
Regulation: IARE R16
DATABASE MANGEMENT SYSTEMS
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Explain Database system structure with a neat sketch.
Construct an E-R diagram for a car-insurance company whose customers own one or more cars
each. Each car has associated with it zero to any number of recorded accidents.
2. Explain in detail the Network and Hierarchical models with examples.
Construct an alternative E-R diagram that uses only a binary relationship between students and
course-offerings. Make sure that only one relationship exists between a particular student and
course-offering pair, yet you can represent the marks that a student gets in different exams of a
course offering.
UNIT II
3. Consider the following schema:
Suppliers integer, sname:string, address: String)
Parts (pid:integer, pname:string, color:string)
Catalog(sid:integer, pid:integer, cost:real)
Write the following queries in relational algebra
i. Find the name of suppliers who supply some red part.
ii. Find the sids of suppliers who supply some red part and some green part.
Define all the variations of the join operation? Can't we express every join operation in terms of
cross product, selection and projection?
4. Consider the relational database of Employee.
employee (person-name, street, city)
works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)
Give a relational-algebra expression for each of the following queries:
i. Find the company with the most employees.
ii. Find the company with the smallest payroll.
iii. Find those companies whose employees earn a higher salary, on average, than the average
salary at First Bank Corporation.
Page 1 of 3
Explain the following:
Tuple relational calculus with an example.
ii) Domain relational calculus with an example.
UNIT III
5. Using the relations of sample bank database, write an SQL expression to define the following
views:
i. A view containing the account numbers and customer names (but not the balances) for all
accounts at the Deer Park branch.
ii. A view containing the names and addresses of all customers who have an account with the
bank, but do not have a loan.
iii. A view containing the name and average account balance of every customer of the Rock Ridge
branch.
Consider the insurance database given below:
person (driver-id, name, address)
car (license, model, year)
accident (report-number, date, location)
owns (driver-id, license)
participated (driver-id, car, report-number, damage-amount)
where the primary keys are underlined. Construct the following SQL queries for this relational
database.
i. Find the total number of people who owned cars that were involved in accidents in 1989.
iii. Find the number of accidents in which the cars belonging to "John Smith" were involved.
iii. Add a new accident to the database; assume any values for required attributes.
iv. Delete the Mazda belonging to "John Smith".
6. Use the definition of functional dependency to argue that each of Armstrong's Axioms (reflexivity,
augmentation, and transitivity) are sound.
Write an SQL trigger to carry out the following action: On delete of an account, for each owner
of the account, check if the owner has any remaining accounts, and if she does not, delete her
from the depositor relation.
UNIT IV
7. List the ACID properties. Explain the usefulness of each.
Consider the following two transactions:
T1:
if A 0then B B
write(B).
T2:
if B 0then A A
write(A).
Let the consistency requirement be A 0 B with A B 0 the initial values.
Page 2 of 3
i. Show that every serial execution involving these two transactions preserves the consistency of
the database.
ii. Show a concurrent execution of T1 and T2 that produces a non serializable schedule.
iii. Is there a concurrent execution of T1 and T2 that produces a serializable schedule?
8. Write short note on Time Stamp based concurrency control.
Consider the following two transactions:
T31:
if A 0then B B
write(B).
T32:
if B 0then A A
write(A).
Add lock and unlock instructions to transactions T31 and T32, so that they observe the two-phase
locking protocol. Can the execution of these transactions result in a deadlock?
UNIT V
9. Demonstrate the typical steps in query processing with a neat sketch?
Briefly discuss about operations on files?
10. Discuss the techniques for allowing a hash file to expand and shrink dynamically. What are the
advantages and disadvantages of each?
What are the several types of ordered indexes?
Other Question Papers
Subjects
- ac machines
- advanced databases
- aircraft materials and production
- aircraft performance
- aircraft propulsion
- aircraft systems and controls
- analog communications
- analysis of aircraft production
- antennas and propagation
- applied physics
- applied thermodynamics
- basic electrical and electronics engineering
- basic electrical engineering
- building materials construction and planning
- business economics and financial analysis
- compiler design
- complex analysis and probability distribution
- computational mathematics and integral calculus
- computer networks
- computer organization
- computer organization and architecture
- computer programming
- concrete technology
- control systems
- data structures
- database management systems
- dc machines and transformers
- design and analysis of algorithms
- design of machine members
- digital and pulse circuits
- digital communications
- digital ic applications using vhdl
- digital logic design
- digital system design
- disaster management
- disaster management and mitigation
- discrete mathematical structures
- dynamics of machinery
- electrical circuits
- electrical measurements and instrumentation
- electrical technology
- electromagnetic field theory
- electromagnetic theory and transmission lines
- electronic circuit analysis
- electronic devices and circuits
- elements of mechanical engineering
- engineering chemistry
- engineering drawing
- engineering geology
- engineering mechanics
- engineering physics
- english
- english for communication
- environmental studies
- finite element methods
- fluid mechanics
- fluid mechanics and hydraulics
- fundamental of electrical and electronics engineering
- fundamental of electrical engineering
- gender sensitivity
- geotechnical engineering
- heat transfer
- high speed aerodynamics
- hydraulics and hydraulic machinery
- image processing
- industrial automation and control
- instrumentation and control systems
- integrated circuits applications
- introduction to aerospace engineering
- kinematics of machinery
- linear algebra and calculus
- linear algebra and ordinary differential equations
- low speed aerodynamics
- machine tools and metrology
- mathematical transform techniques
- mathematical transforms techniques
- mechanics of fluids and hydraulic machines
- mechanics of solids
- mechanism and machine design
- metallurgy and material science
- microprocessor and interfacing
- modern physics
- network analysis
- object oriented analysis and design
- object oriented programming through java
- operating systems
- optimization techniques
- power electronics
- power generation systems
- probability and statistics
- probability theory and stochastic processes
- production technology
- programming for problem solving
- pulse and digital circuits
- reinforced concrete structures design and drawing
- software engineering
- strength of materials - i
- strength of materials - ii
- structural analysis
- surveying
- theory of computation
- theory of structures
- thermal engineering
- thermo dynamics
- thermodynamics
- tool design
- transmission and distribution systems
- unconventional machining processes
- waves and optics
- web technologies