Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crosstab mania?
Message
From
16/07/1999 16:18:46
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00242206
Message ID:
00242557
Views:
22
>>You can put imbedded IIF statements to get the results..
>>
>>SELECT artnr, ;
>>SUM(IIF(MONTH(date)=1,1,0)) AS Jan, ;
>>SUM(IIF(MONTH(date)=2,1,0)) AS Feb, ;
>> etc ;
>> FROM MyTable GROUP BY artnr
>>
>>I had a tip to this effect in sept 98 FP Advisor
>
>YES! That did the trick! Craig's solution had a big flaw - it put pressure on me to understand some code :-)
>
>/Pierre

WAIT!!! Unless I'm wrong, that's code there. I have been wrong before. Actually, I use this same method all the time.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform