There is a status column. I need to pull all the distinct values for each one, and a number indicating how many times each unique value is in the table.
Is there a way to do that?
Thanks.
SELECT status, count(*) as c FROM table GROUP By status;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With