For example I have a data here
ID Doctor Status
1 Wooka Approved
2 Jamba Approved
3 Jamba Approved
4 Wooka Approved
5 Wooka Approved
6 Wooka Approved
7 Wooka Approved
. . .
. . .
. . .
99
For the first 7 rows (demonstration purposes, not limited to 7) I want it to output like this
Doctor Count
Wooka 5
Jamba 2
Although I am not sure how to do that in COUNT()
SELECT COUNT(*) FROM table WHERE status='Approved'
I really don't have any idea how to make it flexible as to what I've asked.