Question: Based on the following SQL statements executed on a database table TABLE1 in order: SELECT COL1 FROM TABLE1; Output: 30 UPDATE TABLE1 SET COL1 =

 Based on the following SQL statements executed on a database tableTABLE1 in order: SELECT COL1 FROM TABLE1; Output: 30 UPDATE TABLE1 SET

Based on the following SQL statements executed on a database table TABLE1 in order: SELECT COL1 FROM TABLE1; Output: 30 UPDATE TABLE1 SET COL1 = 50; SELECT COL1 FROM TABLE1; Output: ? (I) ROLLBACK; SELECT COL1 FROM TABLE1; Output: ? (II) UPDATE TABLE1 SET COL1 = 40; SELECT COL1 FROM TABLE1; Output: ? (III) COMMIT; SELECT COL1 FROM TABLE1; Output: ? (IV) ROLLBACK; SELECT COL1 FROM TABLE1; Output: ? (V) SELECT COL1 FROM TABLE1; Output: ? (III) COMMIT; SELECT COL1 FROM TABLE1; Output: ? (IV) ROLLBACK; SELECT COL1 FROM TABLE1; Output: ? (V) When the above queries ran one after another sequentially, what would be the output values in order (I-II-III-IV-V)? Please choose the right answer. A. 5050304040 B. 5030404040 C. 30 - 30 - 30 - 40 - 40 D. 3050 - 30 - 40 - 40

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!