snowboardr
Programmer
I am trying to do a count in my ASP application and I am able to do this on a few:
This returns 16, and there are 16 records that mactch this criteria.
But when I do this it returns 1, and it should return 5 (> is the change)
When I do this select in MySQLfront (a gui program for mysql) it returns 5 rows with 1 in each row...
Regards,
Jason
This returns 16, and there are 16 records that mactch this criteria.
Code:
SELECT count(*) as UserCount,ureadstatus FROM users WHERE ureadstatus = 0 GROUP by ureadstatus
But when I do this it returns 1, and it should return 5 (> is the change)
Code:
SELECT count(*) as UserCount,ureadstatus FROM users WHERE ureadstatus > 0 GROUP by ureadstatus
When I do this select in MySQLfront (a gui program for mysql) it returns 5 rows with 1 in each row...
Regards,
Jason