Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
i have a large mysql database table in which one column contains values ranging from 1 to 9 what query can i give so that i can get the count of 1s and 2s and 3s ... 9s in that column in the database ?
select column, count(*) from table group by column
Add a comment
You use grouping:
select TheValue, count(*) from TheTable group by TheValue order by TheValue
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.