We can use DISTINCT on a single column or multiple columns. We can use SELECT DISTINCT on a single table or multiple tables. The syntax of the SELECT DISTINCT statement to return the unique records in a column (s) is as shown below.
What is the purpose of the DISTINCT keyword in SQL? The DISTINCT keyword is used to retrieve unique values from a specific column or combination of columns in a result set. Does using the DISTINCT keyword affect the order of the result set? No, the DISTINCT keyword does not guarantee the order of the result set.