Answer All Questions
Answer All Questions
Date
: 07.02.2013
Branch
: CSE &IT
Max. Marks : 50
(16)
(b) i) Explain in detail the major disadvantages of keeping organizational information in a file
processing system.
(8)
ii) Draw an ER diagram for Hospital management system.
(8)
7. (a) i) Consider the employee database, where the primary keys are underlined.
Employee (empname, street, city)
Works (empname, companyname, salary)
Company (companyname, city)
Manages (empname, managername)
(16)
Write the Relational Algebra Expression and SQL statements for the following
queries.
1) Find the names of all employees who work for First Bank Corporation.
2) Find the names, street addresses, and cities of residence of all employees who work for
First Bank Corporation and earn more than 200000 per annum.
3) Find the names of all employees in this database who live in the same city as the
companies for which they work.
4) Find all employees in the database who live in the same cities and on the same streets as do
their managers
5) Find the names of all employees who do not work for First Bank Corporation
Or
(b) i) With relevant examples discuss any four operations in relational algebra
(8)
ii) Explain the various Data Models in detail
(8)
8. (a) Explain in detail the Extended ER Features with suitable diagrams
Or
(b)Explain in detail about relational calculus.
(8)
(8)