Question: 1e) Write SQL statements to compute the following i) Number of complains that were logged by Customer ID 0001 which where resolved [6] ii) Complains

1e) Write SQL statements to compute the following i) Number of complains that were logged by Customer ID 0001 which where resolved [6] ii) Complains which are pending and the number of days they have taken without being resolved [6] iii) Complains that where resolved on the same day they were logged [3] 1e) As a professional database administrator you would want to create known save points as you transact in case of a system crush as one of the key implementations to ensure that ensure that the database is taken from one consistent state to the next consistent state. Using your expertise implement the following TCL: i) While adding the following customer data and the customer complain log, create the two savepoints A, B. Customer Data - [ 0004, Marting, Mabwandi, artinmabwnadi@ymail.com, 78-6679T ] [4] Complain Log [CID9003, 2022-09-20, 0004, Expired Buns] [4] ii) Assuming that while attempting to execute the query statements above , the electricity supply system blacks out , write an SQL statement to reverse the transaction to savepoint A [3]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!