Академический Документы
Профессиональный Документы
Культура Документы
and the set of functional dependency F as given below : S2 : r1 (x) ; r2 (z); r1 (z) r1 (x); r2 (y); r3 (y) ; w1 (z); w2 (z);
w3 (y); w2 (y)
F = {AB C, A DE, B F, F GH, D IJ}
(b) Consider the following set of requirements for a bank
(i) Determine the key for R.
database : "A large bank has several branches at different
(ii) Decompose R into Second Normal Form. places. Each branch maintains the account details of the
(b) Consider the following relational database : customers. The customer may open joint as well as single
accounts. The bank also provides the bank loans to the
EMPLOYEE (PERSON_name, street, city)
customers for different purposes. Bank keeps records of
WORKS (PERSON_name, Company_name, Salary) each transaction by the customer to his account. All of the
(i) Identify referential integrity constraints that should branches have employees and some employees are
hold. managers."
(ii) Give an SQL DDL definition of this database. (i) Draw an ER diagram that captures this information.
(iii) Discuss the inclusion of above constraints in DDL (ii) Transform this ER diagram to the relational database
definition. scheme.
(c) What do you mean by deadlock handling ? Explain in brief. (iii) Write SQL-DDL statement to implement bank data
Explain the conflict and view serializable schedule in detail. base schema.