So, let's say we have My_column which has 2 occurrances of b_value, 3 occurances of a_value and 1 occurrance of c_value, like this:
b_value
b_value
a_value
a_value
a_value
c_value
What I'd like to do is use GROUP BY on the values and then count the number of occurences and set them up accordingly, like this:
b_value | 2
a_value | 3
c_value | 1
I don't even know where to start. I'vee been fuzzing around in management studio, but no luck thus far.