I am using two columns to select from. One is link_id and the other is timestamp. There are multiple entries of the same link and I want only the most recent posting each link in the list. I haven't been able to figure it out.
Here is what I have so far
SELECT DISTINCT `link_id` , `timestamp`
FROM `price_slot_cancels`
WHERE `timestamp` > ' 2012-06-16 00:00:00'
AND `timestamp` < '2012-06-30 00:00:00'
GROUP BY link_id
ORDER BY `timestamp` DESC
I've tried a bunch of different things and nothing is working
Thanks in advance


Reply With Quote




Bookmarks