Multiple choice technology databases

Emp table has 10 rows. How many rows will be fetched against the following query? Select 10 from emp where rownum>=2

  1. 2

  2. 8

  3. 10

  4. None of the above

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

In Oracle SQL, the ROWNUM pseudo-column is assigned sequentially starting at 1. The condition rownum >= 2 is never met because the first row evaluated is assigned ROWNUM 1, which fails the condition, preventing any subsequent rows from being fetched. Thus, 0 rows are returned.