Jump to content

Sorting By Number Of Entries


rmpotter
 Share

Recommended Posts

I am trying to display an SQL table where-in I have a field entitled 'categories'. Lets say I have 5 entries entitles 'cars', 3 entilted trucks and 6 entitled 'Buses'I am looking to sort this data out by category and have the category occurring most (buses) list it's info first and then list each other category by number of occurrences thereafter. Can anyone help?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...