FRESHERSHOME![]() |
This is a discussion on mySql query? within the MySQL forums, part of the Data Base Related category; I have a table in which date and events are stored. Each date may have more than one event. How ...
| |||||||
| Notices |
| MySQL MySQL Related discussion, MySQL configuration help, and everything related to MySQL |
![]() |
| | Thread Tools | Display Modes |
|
#1
| |||
| |||
| I have a table in which date and events are stored. Each date may have more than one event. How to list it date wise? Example: 2007/12/6 - event1 2007/12/6 - event2 2007/12/6 - event3 2007/12/7 - event4 2007/12/7 - event5 2007/12/8 - event6 I want the result as: 2007/12/6 event1 event2 event3 2007/12/7 event4 event5 I am using php, mysql
__________________ Powered by Yahoo! |
|
#2
| |||
| |||
| there is not a single command in sql that is used to disp the data in the way what you wnat. ans of your que can be achieved through the use of order by or sort command
__________________ Powered by Yahoo! |
|
#3
| |||
| |||
| You can use an ORDER BY date to sort the events by date. Iterate through the dataset returned and when you hit a new date, output the date. Something like that should work.
__________________ Powered by Yahoo! |
![]() |
| Tags |
| mysql query |
| Thread Tools | |
| Display Modes | |
|
|
Sitemap
Jobs by Location: Advertising and Marketing Jobs - IT Software Jobs - Walk-in Jobs - BPO Jobs - Government Jobs - Sales / BD Jobs - Tele Communication Jobs App Programming - Network Admin
Jobs By Location: Jobs in Bangalore - Jobs In India - Jobs in Delhi - Jobs in Hyderabad - Jobs in Kochi - Jobs in Mumbai - Jobs in Trivandrum - Jobs in pune - Jobs in Jonida - Jobs in Chennai - Jobs in Coimbator
Jobs Type: Full Time Jobs - Part Time Jobs
Latest Jobs - Accounting Jobs - Engineering Jobs - IT Jobs - Walkins - How to Face Interview - HR Round Tips - Career Info - Guide For Freshers - Apply for Jobs - Future Studies - Jobs Forums - Freshers IT Software Salary Details