OH! The bad-old-version problem. Oy vay. Thanks for your help and comments everyone. Sorry I didn't post this morning - deep snow here in Western Massachusetts.
swampBoogie, you are right. I am using MySQL 4.0.18 and as this is on phpwebhosting.com I don't think I'll get the upgrade in a...
I want to find the most recent purchase for each customer(see below) and I tried:
SELECT A.*
FROM mytable A INNER JOIN (
SELECT full_name, Max(entered_when) AS entered_when FROM mytable GROUP BY full_name
) M ON A.full_name=M.full_name AND A.entered_when=M.entered_when
;
I got a syntax error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.