Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Question
Message
De
28/07/1998 10:49:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00121732
Message ID:
00121981
Vues:
21
>>>Michelle,
>>>
>>>
>>>SELECT Zone, Class, COUNT(Class) ;
>>>  FROM MyTable ;
>>> GROUP BY Class ;
>>> ORDER BY Zone, Class ;
>>> INTO CURSOR MyResult
>>>
>>
>>That's slightly different from Ed's. Is there any difference in the results?
>>
>>Thanks,
>>
>>-Michelle
>
>Michelle,
>
>Ed's and mine are variations on the theme. Functionally the saem but written differently.

Works different if null values exist in counted fields:

Select count(myfld1) from mytable && Ignores null values from the count.

Select count(*) from mytable && Includes all rows in the count.

Crescencio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform