I have the following query:
With this I try to ORDER BY MONTH first and after that by DAY, but it keeps ordering by DAYCode MySQL:
What am I doing wrong?02/12, 03/12, 04/11, 04/12, 05/11, 06/11, 09/12, 10/12, 11/11
| SitePoint Sponsor |





I have the following query:
With this I try to ORDER BY MONTH first and after that by DAY, but it keeps ordering by DAYCode MySQL:
What am I doing wrong?02/12, 03/12, 04/11, 04/12, 05/11, 06/11, 09/12, 10/12, 11/11
“Good artists copy, great artists steal” (Pablo Picasso - 1934)
How about ordering by activity_date?
Code:ORDER BY activity_name, activity_date
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget





Somehow that is not working either. Maybe I should ask the same question in the Coldfusion forum since I use CF to create the list of dates
“Good artists copy, great artists steal” (Pablo Picasso - 1934)
What format does the activity_date column have? DATE?
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget





Hi Guido, no it is a timestamp. Should it be date?
“Good artists copy, great artists steal” (Pablo Picasso - 1934)
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget





Hi Guido, It is indeed. When I test it with just 1 activity_id it gives the right order, as soon as I come to this page where all activities are listed then the wrong ordering takes place.
“Good artists copy, great artists steal” (Pablo Picasso - 1934)


make sure when you test a query that you test it outside of coldfusion first
Bookmarks