Jump to content

order by two fields


starphp

Recommended Posts

 

I wish to select records order by two fields in the descending format:

 

table: details

 

id month year

 

1 -----01  ------  2009

2 -----05  ------ 2008

3 -----05  ------ 2009

 

 

need a recent records ie 05 - 2009 then 01 - 2009  then 05 -- 2008 Is that possible with SQL Query ?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/162555-order-by-two-fields/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.