Viewing 4 posts - 46 through 49 (of 49 total)
Try this Bob.
SELECT
[USERNAME],
SUM(CASE WHEN [STATE] = 'TX' THEN 1 ELSE 0 END) 'TX',
SUM(CASE WHEN [STATE] = 'NM' THEN 1 ELSE 0 END) 'NM',
SUM(CASE WHEN [STATE] =...
October 31, 2005 at 1:26 pm
#601410
Thanks.
October 28, 2005 at 10:01 am
#600969
SELECT GroupCode,COUNT(*) as myCount,
SUM(CASE WHEN Compliant = 'T' THEN 1 ELSE 0 END ) AS Compliant
FROM myTbl
GROUP BY GroupCode
October 14, 2005 at 10:01 am
#597410
Still evaluating, but certainly looks promising.
Wish List:
Ability to rearrange objects.
Sent to file or printer.
September 22, 2005 at 9:41 am
#592293