The DISTINCT keyword in SQL is used to remove duplicate rows from the result set of a query.
By adding the DISTINCT keyword, SQL filters out these duplicates, keeping only one occurrence of each unique combination of values in the specified columns.
Using DISTINCT can slow down queries, especially on large datasets, as SQL must scan and compare rows to filter duplicates.
The DISTINCT keyword is a simple yet powerful tool to eliminate duplicate rows in SQL query results.