SQL · Question 16 · Easy

Which keyword is written after SELECT to remove duplicate rows from a query's result?

  1. UNIQUE
  2. DIFFERENT
  3. SINGLE
  4. DISTINCT
Answer and explanation

Answer: D. DISTINCT

Explanation: SELECT DISTINCT col ... returns each distinct combination of the selected values only once. UNIQUE is a column constraint, not a SELECT keyword in standard SQL.

Previous: Table A has one column x with rows: 1, 1, 2, NULL Table B has one column x… · Next: In a LIKE pattern, which wildcard matches exactly one character?

Practise sql

Try a fresh set of sql questions with an explanation after every answer, free and without signing up: SQL practice. Or sit a full placement mock test.

More sql questions

More technical & programming practice

Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge