Consider the following SQL statements: A) select * from student where year = '2nd' or year = '3rd' B) select * from student where year in ('2nd', '3rd')
Official theoretical question paper for Database Management Systems (PCC-CS601) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
Consider the following SQL statements: A) select * from student where year = '2nd' or year = '3rd' B) select * from student where year in ('2nd', '3rd')
The employee salary should not be greater than Rs.20,000. This is
Consider the following query: (((P WHERE COLOUR = 'RED') [P# JOIN SP] [S# JOIN S]) [SNAME]) Which one of the following set of operations does the above query involve?
Second Normal Form
When a row is deleted which one of the following techniques should be used to maintain integrity?
What is the name of a trigger that triggers itself?
Given the following relation instance X Y Z 1 4 2 1 5 3 1 6 3 3 2 2
Which of the following functional dependencies are satisfied by the instance?
If a table R consists only of its primary key (which may consist of a number of attributes) and has no other attributes, the table would always be in
Three transactions attempt to book seats on a flight that has 12 seats available. The transactions are transaction T1 for 3 seats, transaction T2 for 5 seats and transaction T3 for 7 seats. If a schedule that is serializable is executed, the number of seats sold cannot be
Which of the following is the size of the data item chosen as the unit of protection by a concurrency control program?
Discuss the properties of decomposition including attribute preservation, dependency preservation and lossless join with example.
Give an example of table decomposition which is not lossless.
Could a modern university be supported if a file processing system was used to manage enterprise information? List four major difficulties that are likely to arise if no database system was available to the university. Discuss the difficulties.
What is the disadvantage of Cartesian product and how to recover from it?
Explain full outer join, left outer join, right outer join with examples.
What is the single most significant difference between two-phase locking and the time-stamping technique concurrency control? Explain briefly.
Consider the following "SAILOR" and "RESERVE" relation: SAILOR(sid, sname, rating, age) RESERVE(sid, bid, day) Formulate relational algebra query: a) Find names of sailors who have reserved boat #XXX.
b) Find names & ages of sailors who have reserved a boat.
Draw an ER diagram for the system given as follows: An organization has number of faculties who are expert in one or more subjects. For each subject, number of such experts is there, system will store faculty and subject information and must support query on finding expertise on subjects. Students get enrolled to have training on one or more subjects. System will keep student information also. One faculty is allotted to teach one or more subjects and for one subject only one faculty is assigned. System will keep the information regarding such assignment.
Describe how the entity animal (in a ZOO) can be developed into a specialization hierarchy.
What is meant by a recursive relationship type? Give one example of recursive relationship type.
Consider the following tables: RESTAURANTS(rid, rname, rcity, phone, seat-capacity) DISHES(did, dname, dtype) CUSTOMER(cid, cname, ccity) SERVES(rid, did) HAS_ALLERGY(cid, did)
i) Find the names of the restaurants that serve "Burger" (dish name). ii) List the names of dishes that customer "Roy" can eat without allergy problem. iii) List the names of dishes that appear in all restaurants in Kolkata. iv) Find the names of customers who are in the same city as restaurant "Maachan" and who can eat at least one dish at "Maachan" without allergy problem.
What are the major problems with performing update operations through VIEW. Briefly discuss each.
Specify the following constraints in SQL using accurate applicable command: (i) All values of attribute mark in relation enrollment must be within 0 and 100. (ii) If the value of attribute grade is 'A' then the mark must be more than or equal to 80. If the value of attribute grade is 'B' then the mark must be less than 80 but greater than or equal to 70.
Prove or disprove the following: (i) If AB → C, A → D, CD → EF then AB→F (ii) If XW → Y and XY→Z then X → (Z - W)
A table R has attributes P, Q, R, S, T, U, V, W and satisfies the following functional dependencies: PQR → S, PQ → U, Q → V, R → W
i) What are the candidate keys? ii) Is this an irreducible set of functional dependencies?
Consider the relation R (A, B, C, D, E) with the set of F = {A →C, B → C, C →D, DC → C, CE →A}. Suppose the relation has been decomposed by the relations R1(A, D), R2(A, B), R3(B,E), R4(C,D,E) and R5(A, E). Is this decomposition lossy or lossless? Justify your answer.
Why do we normalize a relation? Describe the anomalies.
Consider each order has unique order_id for each order, following information are stored: order_id, order_dt, customer_name, customer_address, salesman_name, salesman_address and for each requested item store item_code, item_name, quantity and rate. Further assume, following functional dependencies: salesman_name →salesman_address customer_name →customer_address order_id →order_dt, salesman_name, customer_name order_id, item_code →quantity item_code →item_name, rate Normalize the database up to 3NF showing the steps. Indicate PRIMARY & FOREIGN KEYS.
Is a table with only two columns that is in 3NF, always is in BCNF. What about a table with three columns that is in 3NF? Explain your answer and give examples to support it.
What is MVD's? What do you mean by lossless (or non-additive) join property of decomposition?
What are the roles of the Analysis, Redo and Undo phases in the recovery algorithm 'ARIES'.
Consider the following transactions and find how many different schedules of the two transactions are possible? How many of these are serializable? | Transaction 1 | Transaction 2 | |---|---| | Read (X) | Read (X) | | X :=X-N | X :=X+M | | Write (X) | Write (X) | | Read (Y) | --- | | Y := Y+N | --- | | Write (Y) | --- |
Transactions cannot be nested inside one another. Why not?
Systems do not allow a given transaction to commit changes to databases on an individual basis. I.e., without simultaneously committing changes to all other databases. Why not?