I have a table whose structure is as follows:
id int userid int status enum ('pending','approved') dop datetime
Data:
id userid status dop 1 24 pending 2011-02-14 06:41:32 2 24 pending 2011-02-15 23:02:45
When I run the following query:
SELECT count( userid ) FROM t1 WHERE STATUS = 'pending' GROUP BY userid
This gives me an account like β2,β which is wrong, can anyone tell me what is wrong here? and how to get a real account like 1
source share