Hello I have a database that contains the following setup
id | message
1 5
2 5
3 6
in the message columns I have certain integers that can be duplicate. The thing I want to get now is to have all the message values AND how many time they appear in the column.
So the output should be
5(2)
6(1)
Can someone help me out how the query should be?