Marc,


YES! - that worked - thank you thank you many times for helping me.  


mARK

  _____  

From: Marc Lowe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 4:14 PM
To: CF-Talk
Subject: Re: SQL Query problem

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