Multiple choice

Examine the following statement:

SELECT empno_seq.CURRVAL FROM SYS.dual;

Which of the following values is displayed?

  1. Current value of the EMPNO_SEQ sequence

  2. Current value of the EMPNO_SEQ cursor

  3. Values of the EMPNO_SEQ column

  4. Current value of the EMPNO_SEQ index

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The EMPNO_SEQ.CURRVAL returns the current value of the sequence named EMPNO_SEQ. Sequences in Oracle are database objects that generate unique numeric values. CURRVAL specifically returns the last value obtained from that sequence in the current session.