DISTINCT (table) Returns a table by removing duplicate rows from another table or expression.
table – The table from which unique rows are to be returned. The table can also be an expression that results in a table.
A table containing only distinct rows. There is another version of the DISTINCT function, DISTINCT (column), that takes a column name as input parameter.