Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting DISTINCT fo multiple columns
Message
From
03/07/1999 18:05:47
 
 
To
30/06/1999 10:35:38
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00235411
Message ID:
00237254
Views:
22
Actually, DISTINCT works for all columns you select (it cannot be applied to only some columns, individually). So, if you want to have different records (different means here: any field can be different), use DISTINCT. If you want only some columns to be distinct, use GROUP BY.

Vlad

>Thanks for the suggestion. It does work. My problem is a little more complex then that. (Where have you heard that before?) We need to Select all the columns(10) and can't do that unless we include them in the Group By and that won't work. But many thanks for responding. Have a nice day.
>
>Regards,
>
>Paige
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform