1. Home
  2. Computer Science MCQs
  3. MySQL
  4. To remove duplicate rows from the result set of a SELECT…

Added 19 Jan 2024

To remove duplicate rows from the result set of a SELECT use the following keyword:

  1. NO DUPLICATE
  2. UNIQUE
  3. DISTINCT Correct answer
  4. None of the above

Correct answer

C. DISTINCT

11 views

MCQSEXAM

Explanation

To remove duplicate rows from the result set of a SELECT statement in MySQL, you can use the DISTINCT keyword. The DISTINCT keyword is used to retrieve unique values from a specified column or a combination of columns in the SELECT clause.

Reference

https://www.w3schools.com/mysql/default.asp

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs