Subject | Re: COUNT(field > val) |
---|---|
Author | skysword76 |
Post date | 2005-12-28T15:55:08Z |
Actually I wanted something like
SELECT tNo, COUNT(tField > 0) AS POSITIVE,COUNT(tField < 0) AS NEGATIVE,
COUNT(tField = 0) AS ZEROES (...etc)
FROM table
GROUP BY tNo
Regards
Radu
SELECT tNo, COUNT(tField > 0) AS POSITIVE,COUNT(tField < 0) AS NEGATIVE,
COUNT(tField = 0) AS ZEROES (...etc)
FROM table
GROUP BY tNo
Regards
Radu