Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Statement Code
Message
From
22/08/2002 10:00:50
 
 
To
20/08/2002 16:04:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00691426
Message ID:
00692429
Views:
27
>This still isn't what I need. This gives:
>
>month Type cnt
>3 1 89
>3 2 118
>4 1 90
>4 2 57
>etc
>
>I Need:
>
>month dcn eo
>3 89 118
>4 90 57
>etc

Okay, in that case, do it the way I wrote it first, then deleted when I thought of the other <g>:

SELECT month, SUM(IIF(type="1", 1, 0)) AS nDCN, ;
SUM(IIF(type='2', 1, 0)) AS nEO ;
FROM YourTable ;
WHERE whatever ;
GROUP BY 1

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform