Question Paper of CS 06 : Data Base Management System Dec - 1999
Q.l(a). Construct an E-R diagram for a car insurance company that has a set of customers, each of whom owns one or more cars. Each car has associated with it zero or any number of accidents.
(b)Consider the Relational database
Employee (empname, street, city)
Works (empname, companyname, salary)
Company (companyname, city)
Manages (empname, managerjname)
Give expressions in SQL for the following:
(i) Find the names of all employees who work for First Bank Corporation
(ii) Find all employees in the database who live in the same cities as the companies for which they work.
(iii) Find all employees in the database who earn more than every employee of small Bank Corporation.
(iv) Find the names, street address and cities of residence of all employees who work for First Bank Corporation and earn more $10000.
(v) Find all employees in the databases who live in the same cities and on the same street as do their managers.
© Define 2NF and 3NF. Produce 3NF table structures from the table below
Enrol No. Sname Dept. Year Block Name
1024 Mathews Physics 1 G
1126 John Chemistry 1 G
1016 Bill Mathematics 2 K
1420 James Botany 2 K
1503 Charles Geology 3 L
1001 Dickens Zoology 4 M
Second Normal Form (2NF)