Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select latest data available and info for the previous year

Status
Not open for further replies.

douggy

Technical User
Jan 18, 2001
78
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top