written 4.9 years ago by |
Database Management Systems - Jun 18
Computer Engineering (Semester 5)
Total marks: 70
Total time: 2 Hours 30 min
INSTRUCTIONS :
(1) Answer Q.1 or Q.2 , Q.3 or Q.4,Q.5 or Q.6,Q.7 or Q.8, Q.9 or Q.10.
(2) Neat diagrams must be drawn whenever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data , if necessary.
OR
Instead of allowing negative account balances, the bank deals with overdrafts by creating a loan in the amount of the overdraft giving this loan a loan number identical to the account number of the overdraw account setting the account balance to zero. The condition for executing the trigger is an update to the account relation that results in a negative balance value.
Supplier-(supplier_number, supplier name, status, city)
Parts s-(part_number, part_name, color, weight, city)
Shipments-(supplier_number, part_number, quantity)
write SQL query for following requirements (any 2):
(i) Find shipment information (supplier_number, supplier_name,part_number, part_name, quantity) for those having quantity less than 150.
(ii) List supplier_number, supplier_name, part_number, part_name for those suppliers who made shipment of parts whose quantity is larger than the average quantity.
(iii) Find aggregate quantity of part_number 'A692' of color 'GREEN'for which shipment made by supplier_number who reside in 'MUMBAI'
OR
OR
OR
OR
i) CAP Theorem.
ii) BASE properties.