Jump to content
xisto Community
MacFly

Order By Within Group By

Recommended Posts

I want to return the results of a series of races, and display them in theirfinal placing (1st, 2nd 3rd etc, which is determined by a total_seconds timefield) within each race (which will take place on different event_datedays).$Query="SELECT * FROM events GROUP BY event_date ORDER BY total_seconds";won't cut it (even I can see why!) but I can't think how to.I suppose I *could* go to two tables and JOIN but I'd rather use just oneline of code if that's possible.Can anyone help?

Share this post


Link to post
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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.