Multiple choice technology mainframe

Query to fetch first 10 rows in DB2

  1. FETCH 10 ROWS ONLY

  2. GET FIRST 10 ROWS

  3. SELECT FIRST 10 ROWS

  4. FETCH FIRST 10 ROWS ONLY

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

DB2 uses the syntax 'FETCH FIRST 10 ROWS ONLY' to limit query results. This must be placed at the end of the SELECT statement after the ORDER BY clause if sorting is needed. Options A, B, and C use incorrect keywords or word order that don't match DB2 SQL syntax.