Hi Bikky,
There is one more option. Apart from using the Ordered Analytical Functions, you might want to introduce the Start_date and End_date into the LKP table. This approach would correspond to the design when you have a Fact table, a Lookup table, and the condition for dates is:
Fact_table.Event_date between Lookup_table.Start_date and Lookup_table.End_date
This is useful when these tables are used by many people, not all of them being comfortable with Ordered Analytical Functions (they are really great though).
Regards,
Vlad.
Hi Bikky,
There is one more option. Apart from using the Ordered Analytical Functions, you might want to introduce the Start_date and End_date into the LKP table. This approach would correspond to the design when you have a Fact table, a Lookup table, and the condition for dates is:
Fact_table.Event_date between Lookup_table.Start_date and Lookup_table.End_date
This is useful when these tables are used by many people, not all of them being comfortable with Ordered Analytical Functions (they are really great though).
Regards,
Vlad.