sql count how many times a value appears

Solutions on MaxInterview for sql count how many times a value appears by the best coders in the world

showing results for - "sql count how many times a value appears"
Shaun
06 Apr 2017
1* For Example
2- You have a table called t1 & in that table you want to know how many times "ABC" name occured.
3So your query will be.
4
5select name, count(*) as total FROM t1 GROUP BY name