Thread
:
Trouble getting latest record for a given item
View Single Post
#
2
(
permalink
)
11-07-2007, 08:00 AM
DaveSawers
WebProWorld Veteran
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 354
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
DaveSawers
View Public Profile
Send a private message to DaveSawers
Visit DaveSawers's homepage!
Find all posts by DaveSawers