I am trying to do a weird SQL query that I can't seem to figure out. I have the following schema:
username ip
user1 12345
user2 12345
user3 11111
I am trying to count the number of user's per ip. So for instance it would report to me
11111 1
12345 2
I want to also sort this by the least to the most, so that I can see ip 12345 has 2 accounts associated with it and 11111 has 1 account associated with it.
Thanks!