What does the DISTINCT keyword do in a SELECT statement?

SQL Fundamentals Easy

SQL Fundamentals — Easy

What does the DISTINCT keyword do in a SELECT statement?

Key points

  • DISTINCT eliminates duplicate rows
  • Helps in getting unique records
  • Useful when working with large datasets

Ready to go further?

Related questions