Exam C2090-616 All QuestionsBrowse all questions from this exam
Question 23

Which DB2 object is associated with PREVIOUS VALUE and NEXT VALUE expressions?

    Correct Answer: A

    A sequence is associated with the PREVIOUS VALUE and NEXT VALUE expressions in DB2. The NEXT VALUE expression returns the next value for the specified sequence, while the PREVIOUS VALUE expression returns the most recently generated value for that sequence. These expressions are used to obtain sequential values automatically.

Discussion
db2testerOption: A

A sequence allows for the automatic generation of sequential values. NEXT VALUE returns the next value for the specified sequence. PREVIOUS VALUE returns the most recently generated value for the specified sequence.