Thanks for your reply vividearth  I tried both of the queries but they didn't return the count for each data item stored in the status column.
The first query returned two columns each with the value of 1 for each record
PHP Code:
clientcount=select count(*) | not assigned=select(*)...
The second query returns a column called status and statuscount but both contain no data. Is status a reserved word?
The status column only contains, NULL, client, closed and I want to count how many records have NULL, and how many in client etc
Would it be really slow to use three seperate count queries?
|