For example, this is what I have in a query:
Product..Type.....Period....R_Date...........No1.. ....No2
Bar.......Core.....FY10........31.01.2011.....27.. ...
Bar.......Core.....FY10........18.10.2010.....35.. ...15
Bar.......Core.....FY10........25.12.2010.....21.. ...20
PLL......Group.....FY10........14.04.2010.....14.. ...16
PLL......Group.....FY10........18.09.2010.....14.. ...
PLL......Group.....FY10........27.01.2011.....15.. ...
Desired output:
Product..Type.....Period....R_Date...........No1.. ....No2
Bar.......Core.....FY10......31.01.2011......27... ...20
PLL.......Group.....FY10.....27.01.2011......15... ...16
As you can see, the procedure should take the latest data, and if the data is missing it should take the most recent that it’s not missing.
For example, the last record, it took 15 as No1, and it took 16 as No2 because that was the latest available data.
Any ideas? I have none
Thanks!
Product..Type.....Period....R_Date...........No1.. ....No2
Bar.......Core.....FY10........31.01.2011.....27.. ...
Bar.......Core.....FY10........18.10.2010.....35.. ...15
Bar.......Core.....FY10........25.12.2010.....21.. ...20
PLL......Group.....FY10........14.04.2010.....14.. ...16
PLL......Group.....FY10........18.09.2010.....14.. ...
PLL......Group.....FY10........27.01.2011.....15.. ...
Desired output:
Product..Type.....Period....R_Date...........No1.. ....No2
Bar.......Core.....FY10......31.01.2011......27... ...20
PLL.......Group.....FY10.....27.01.2011......15... ...16
As you can see, the procedure should take the latest data, and if the data is missing it should take the most recent that it’s not missing.
For example, the last record, it took 15 as No1, and it took 16 as No2 because that was the latest available data.
Any ideas? I have none

Thanks!
Last edited: