I have the following query:
select carBrand, carYear, carModel from cars;
what I want is to get only different car names.
I wrote t
DISTINCT works on the entire row, not a specific column. If you want to get the unique names, select only that column.
SELECT DISTINCT carBrand FROM Cars