royalcheese
Technical User
I have a table with a the following layout
Fund_ID (KEY) Fund Date
1 4 1/1/2006
1 5 1/2/2006
1 -7 1/3/2006
2 2 1/2/2006
2 1 1/1/2006
I want a query to take a input date ( hard coded for testing at the min.)
and output the current value and the previous date eg
date searched 1/2/2006
Fund_ID current previous
1 5 4
2 2 1
but . . .
date searched 1/3/2006
Fund_ID current previous
1 -7 5
2 1 Null
As it has no values
Please can any one help as its 7 and wanna go home
Fund_ID (KEY) Fund Date
1 4 1/1/2006
1 5 1/2/2006
1 -7 1/3/2006
2 2 1/2/2006
2 1 1/1/2006
I want a query to take a input date ( hard coded for testing at the min.)
and output the current value and the previous date eg
date searched 1/2/2006
Fund_ID current previous
1 5 4
2 2 1
but . . .
date searched 1/3/2006
Fund_ID current previous
1 -7 5
2 1 Null
As it has no values
Please can any one help as its 7 and wanna go home