I left a lot of your query out but you should be able to look at this and see the biggest differences.
SELECT m.memberID, m.firstname, m.lastname,
MAX(t.transactionID) as maxID
FROM members m
INNER JOIN trans t ON t.memberID = m.memberID
GROUP BY m.memberID, m.firstname, m.lastname
Hope that helps,
Marc
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Re: Best practices storing CC BILLY CRAVENS
- SQL Query problem Mark Leder
- Re: SQL Query problem Alexander Sherwood
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Alexander Sherwood
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Alexander Sherwood
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Alexander Sherwood
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Marc Lowe
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Tangorre, Michael
- RE: SQL Query problem Mark Leder
- RE: SQL Query problem Tangorre, Michael
- Re: SQL Query problem Marc Lowe
- Re: SQL Query problem Marc Lowe
- RE: SQL Query problem - SOLVED Mark Leder
- RE: SQL Query problem - SOLVED Mark Leder
- SQL Query Problem bhattach