Which SQL clause is used to eliminate duplicate rows from the result set of a database query?

Answer and explanation

Correct answer: B. DISTINCT

  1. Step 1: The SELECT DISTINCT statement evaluates the selected columns and filters out identical rows. Step 2. It returns only unique tuples in the final output dataset. Answer: DISTINCT. Why not the others: UNIQUE is a schema table constraint; GROUP BY groups rows for aggregate functions; ORDER BY sorts records.

Practise more Computer Systems, Networking and ICT.

Free questions with an explanation for every one, and full timed Bangladesh Civil Service Preliminary Examination mock tests.

Which SQL clause is… | Bangladesh Civil Service Preliminary Examination