1. Home
  2. Data Science
  3. SQL for Data Analysis
  4. What does the DISTINCT keyword do in a SELECT list?

Added 30 Nov -0001

What does the DISTINCT keyword do in a SELECT list?

  1. Keeps only rows with NULLs
  2. Removes duplicate result rows Correct answer
  3. Sorts the result rows
  4. Counts repeated rows

Correct answer

B. Removes duplicate result rows

16 views

MCQSEXAM

Explanation

DISTINCT collapses rows whose selected values are all equal into a single row.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

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

Ask a doubt about this MCQ

Shown after review. No links please.

More SQL for Data Analysis MCQs

Practise all SQL for Data Analysis MCQs

Similar MCQs