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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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