View Single Post
  #2 (permalink)  
Old 11-07-2007, 08:00 AM
DaveSawers's Avatar
DaveSawers DaveSawers is offline
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 354
DaveSawers RepRank 1
Default Re: Trouble getting latest record for a given item

Why not change the select around (and simplify it) to something like:

select * from prices where product_id=1 order by price_date desc limit 1
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote