sqlite - Count items in column SQL query -


let's have table looks like,

id 2 2 3 4 5 5 5 

how like,

id count  2  2  3  1  4  1  5  3 

where count column count of each id in id column?

you want use group operation

 select id, count(id)  table  group id 

Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -