Multiple choice technology databases

Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater then 5000?

  1. ORDER BY SALARY > 5000

  2. GROUP BY SALARY > 5000

  3. HAVING SALARY > 5000

  4. WHERE SALARY > 5000

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

The WHERE clause filters rows based on a condition. 'WHERE SALARY > 5000' correctly restricts the result to employees earning more than 5000. ORDER BY sorts results, GROUP BY aggregates them, HAVING filters aggregated groups - none are used for row-level filtering.