![]() |
print values in order
Hi,
I have selected mysql database table values as following Code:
client amount month yearCode:
2005 Joe Nick rubble |
Re: print values in order
The best practice in databases is to always have date field in one single field. By separating the month field, you have lost ability to sort or group them by date, and this is what is causing this to be a nightmarish problem.
Make this change and the problem will become much simpler. |
Re: print values in order
No, what divinequran is actually after is a crosstab query .... unfortunately, MySQL cannot do them "natively".
Have a look at the following URL (http://rpbouman.blogspot.com/2005/10...-in-mysql.html) - there is a workaround .... a bit tedious, but possible. |
| All times are GMT +5.5. The time now is 14:47. |