I have a single table with columns of st_name and id. I need to get the count of st_name and Group by st_name. How do I do this?
st_name
id
select st_name, count(*) as grp_cnt, (select count(distinct st_name) from your_table) as st_cnt from your_table group by st_name
1.4m articles
1.4m replys
5 comments
57.0k users