Hi all,
Im a bit stuck. I think im staring the answer right in the face but cant see it.
Im after a query that references 1 table.
Its output will be each unique source code along with a total of grouped data from a single column.
SOURCECODE Count of 'yes' count of 'no' count of 'maybe' count of 'dontknow'
1
2
3
4
5
any help would be appreciated
SELECT source, COUNT(*) FROM accounts
AND status = '$type'
GROUP BY source