Professional Documents
Culture Documents
Instructions: 1. Answer any FIVE full questions, choosing one full question from each unit.
2. Missing data, if any, may suitably assumed.
UNIT - I
1. a) Discuss the main characteristics of the database approach. How does it 07
differ from the traditional approach of programming with files?
Important Note: Completing your answers, compulsorily draw diagonal cross lines on the remaining blank pages.
OR
2. a) Explain three schema architecture with neat diagram and discuss the 06
importance of logical data independence and physical data independence.
b) Consider the following relations for an Order Processing database 07
application in a company.
CUSTOMER (cust_no, cname, city)
ORDER (order_no, odate, cust_no, ord-Amt)
ITEM (item_no, unit-price)
ORDER-ITEM (order_no, item_no, qty)
WAREHOUSE (warehouse_no, city)
SHIPMENT (order_no, warehouse_no, ship-date).
Write SQL for the following quires.
i. Produce a listing cname, Number of orders, Avg_Order_Amt,
where the middle column is the total numbers of orders by the
customer and the last column is the average order amount for that
customer.
ii. List the order_no for orders that were shipped from all warehouses
that the company has in a specific city.
iii. Demonstrate how you delete item_no 10 from the ITEM table and
make that field null in the ORDER_ITEM table.
c) Distinguish between EXISTS and NOTEXISTS clauses used in SQL with 07
an example.
UNIT - II
3. a) Show with an example violation of the constraint in each of the three 06
types of update operations and how it can be overcome.
b) Explain relational algebra DIVISION operation. Find the quotient for the 06
following: A/B1, A/B2 and A/B3; where A, B1, B2 and B3 are
c) Design the ER diagram for the following requirements (capture all the 08
relationship constraints in the diagram):
Consider order database in which employees take orders for product from
customers. The requirements are:
a) Each Employee is identified by EMP_ID, EMP_Name & Address
(Street num, area name, city).
b) Each Customer is identified by CUST_ID, CUST_Name, Mobile
Number(multiple values).
c) Each Product is identified by Product_ID, Product_name, Price
and Quantity.
d) Each Employee can take order from more than one Customer.
e) Each Customer can place request for more than one Product.
f) Each Employee can deliver more than one Product.
OR
4. a) Explain different kinds of joins with example. Consider the following 06
tables T1(P,Q,R) and T2(A,B,C). Find the output of the following
relational algebra expressions (Note: Domains of table T1 and T2 are
compatible)
UNIT - III
5. a) Define Normalization. Explain the informal design guidelines for 10
relational schema.
b) Consider the dependency diagram shown in the following figure 10
UNIT - IV
6. a) List and Explain the Desirable properties of transaction. 06
UNIT - V
7. a) Differentiate between Third Normal Form and Boyce-Codd Normal Form. 06
Explain with an example.
b) Consider the following two set of functional dependencies. 06
F={A->C, AC->D, E->AD, E->H}
G={A->CD,E->AH}
Check whether the F and G are equivalent.
c) Define View in SQL. Consider the following tables. 08
Employee
Works_On
*****