PrepAway - Latest Free Exam Questions & Answers

Which of the following is the last value obtained for COL_2?

Given the following table:
TAB1
COL1 COL2
—– —–
A 10
B 20
C 30

D 40
E 50
And the following SQL statements:
DECLARE c1 CURSOR WITH HOLD FOR
SELECT * FROM tab1 ORDER BY col_1;
OPEN c1;
FETCH c1;
FETCH c1;
FETCH c1;
COMMIT;
FETCH c1;
CLOSE c1;
FETCH c1;
Which of the following is the last value obtained for COL_2?

PrepAway - Latest Free Exam Questions & Answers

A.
20

B.
30

C.
40

D.
50

2 Comments on “Which of the following is the last value obtained for COL_2?

  1. kw says:

    WITH HOLD
    Prevents the cursor from being closed as a consequence of a commit operation. A cursor declared with WITH HOLD is closed at commit time if one of the following is tru




    0



    0

Leave a Reply