Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Question
Message
De
27/07/1998 16:40:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00121732
Message ID:
00121773
Vues:
14
Assuming VFP5.
SELECT;
     Zones.Zone,;
     NVL(MyTable.Class, SPACE(8)) AS Class,;
     COUNT(Class) AS Cnt ;
   FROM;
    Zones;
      LEFT OUTER JOIN; 
    MyTable ;
      ON Zones.Zone = MyTable.Zone;
 GROUP BY 1, 2 ;
 ORDER BY 1, 2 ;
 INTO CURSOR MyResult
-myron kirby-
====================================================

>>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
----------------------------------
-myron kirby (mkirby2000@gmail.com)-
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform