Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting DISTINCT fo multiple columns
Message
De
03/07/1999 18:05:47
 
 
À
30/06/1999 10:35:38
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00235411
Message ID:
00237254
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform