I know why you are getting the results you are getting but I do not have enough information regarding your data to provide a solution yet.
If you add t.paidthru in your group by clause then it will get multiple entries (a cross-join), but if you leave it out you will get invalid
group by errors.
Questions that I have for you are:
What fields do you need from the transaction table?
Will the paidthru field always be the latest date?
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- 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
- Re: SQL Query Problem Claude Schneegans
- Re: SQL Query Problem joe velez