I have a table which has the following data
companyid subscriptionid
1 21
1 23
2 89
4 99
4 101
I want to count how many times each unique company appears, how do I do this using t-sql?
So for example I want to see 1 = 2 times…but I dont mind if its in a table I dont need to print the data….
1 Answer