I have the following query:
select carBrand, carYear, carModel from cars;
what I want is to get only different car names.
I wrote t
It depends what you want. For example if you want 'Toyota Corolla' and 'Toyota Camry', but ignore the year, then you could do this:
SELECT DISTINCT carBrand + ' ' + carModel AS carName FROM Cars;