[thelist] SQL... group by prob...

r937 rudy at r937.com
Tue Sep 18 09:26:32 CDT 2007


      SELECT offer_id
           , MAX(`date`) AS maxdate
        FROM orders 
       WHERE percent > 0 
      GROUP 
          BY offer_id 
      ORDER
         BY maxdate DESC


;o)




More information about the thelist mailing list