Sobes.tech
Middle+

Which SQL operator saves only unique rows in the result?

sobes.tech AI

Answer from AI

To obtain only unique rows in the result, the DISTINCT operator is used in SQL.

Example:

SELECT DISTINCT column_name FROM table_name;

This query will return unique values from the column_name column, excluding duplicates.