SELECT DISTINCT
The SELECT DISTINCT statement in MySQL is used to retrieve unique values from a specified column or combination of columns in a table. It is particularly useful when you want to eliminate duplicate rows from the result set. Syntax Here’s the basic syntax of the SELECT DISTINCT statement: SELECT DISTINCT column1, column2, … FROM table_name; […]