Count Number Of Times A Value Appears Sql Code Example


Example: sql count how many times a value appears


* For Example
- You have a table called t1 & in that table you want to know how many times "ABC" name occured.
So your query will be.

select name, count(*) as total FROM t1 GROUP BY name

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable