This should work.. I hope

Lets get away from the idea of an aggregate and just use a subquery then

SELECT m.memberID, m.firstname, m.lastname,
       t.transactionID as maxTransactionID,
       t.paidthru as paidthru
FROM members m
INNER JOIN trans t ON m.memberID = t.memberID
WHERE transactionID = (SELECT MAX(transactionID) from trans where memberID = m.memberID)
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to