H
H. van Veenen
Anyone,
I stumbled upon a problem:
How do I select the most recent transaction from a given company if there
are more transactions to choose from.
E.g.
Company A has 2 transactions a1 and b2
a1 = 01/01/2002 (with some other details)
b2 = 01/01/2003 (with some other details)
If I use "SELECT comp.name, trans.transdate FROM comp LEFT JOIN trans on
comp.id = trans.comp_id" it returns both transactions !!
I have tried (also) to collect the transactions in a seperate query and used
this query as 'table', but no difference
With regards
H. van Veenen
I stumbled upon a problem:
How do I select the most recent transaction from a given company if there
are more transactions to choose from.
E.g.
Company A has 2 transactions a1 and b2
a1 = 01/01/2002 (with some other details)
b2 = 01/01/2003 (with some other details)
If I use "SELECT comp.name, trans.transdate FROM comp LEFT JOIN trans on
comp.id = trans.comp_id" it returns both transactions !!
I have tried (also) to collect the transactions in a seperate query and used
this query as 'table', but no difference
With regards
H. van Veenen