I have two tables:
1) ORGANISATION
2) FINANCE
The basic join query outputs the following:
Key|Organisation |Renewal_Date |Fee |Paid_Date |
001|Mark Ltd |17/09/2001 | |
001|Mark Ltd |17/09/2000 |5000 |15/09/2000|
One company can have many financial years of payment information.
I need to select the next renewal date and select payment information for the immediate previous year available.
This all needs to be returned on one line.
From above I would therefore output:
Key|Organisation |Renewal_Date |Fee |Paid_Date |
001|Mark Ltd |17/09/2001 |5000 |15/09/2000|
Can anyone help.
Cheers
Mark
1) ORGANISATION
2) FINANCE
The basic join query outputs the following:
Key|Organisation |Renewal_Date |Fee |Paid_Date |
001|Mark Ltd |17/09/2001 | |
001|Mark Ltd |17/09/2000 |5000 |15/09/2000|
One company can have many financial years of payment information.
I need to select the next renewal date and select payment information for the immediate previous year available.
This all needs to be returned on one line.
From above I would therefore output:
Key|Organisation |Renewal_Date |Fee |Paid_Date |
001|Mark Ltd |17/09/2001 |5000 |15/09/2000|
Can anyone help.
Cheers
Mark