I am working on an application for an organization.
Here i have some events in database table. Now client requirements for their view are as follow.
- First event should be today’s event (If there is any)
- Then upcoming events should be from todays date. Like if today
01-11-2011 then next event should be of 02-11-2011(if there is any)
and next one should be of 03-11-2011 and so on…. - Once all upcoming events have been listed, you can display old
events.
I am just wondering if i can accomplish this task in just one Query. Can you suggest me some query?
Here is table structure.

Currently i have this query.
SELECT * FROM tbl_event ORDER BY event_date DESC;
This application is in Codeignitor framework and MySql is database type.
Something like this maybe?