Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Question
Message
From
27/07/1998 16:40:16
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00121732
Message ID:
00121773
Views:
15
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)-
Previous
Reply
Map
View

Click here to load this message in the networking platform