Skip to main contentSkip to solution

The SELECT command when combined with DISTINCT clause is used to:

Solution

✅ Correct Option: 1

DISTINCT removes duplicate rows from the result set, so each unique row appears only once. For example, SELECT DISTINCT city FROM students;\texttt{SELECT DISTINCT city FROM students;} lists each city a single time, however many students live there.


Option 2: this describes the default behaviour of SELECT (same as SELECT ALL), not DISTINCT.

Option 3: conditions are applied by the WHERE clause, not by DISTINCT.

Option 4: this describes plain SELECT * with no filtering, which returns every row including duplicates.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question