Hello folks,
Years back I used a table in conjunction with the standard DIM_DATE table.
Something like a DATE_RANGE table…
it was a table that was joined to the DIM_DATE table to get ranges
and had (forgot if it was columns or rows…must have been rows…)
values like
Current month
Current quarter
Current year
Last month
Last quarter
Last year
Today
Yesterday
Now I do not recollect the structure of the table or how it was derived…
It would re-populate every day I think (maybe for rows like today and yesterday) …and maybe atleast every weekend or monthend for other values)
It would help end users select the text values and accordingly populate dates from the DIM_DATE and FACT table.
Anyone any ideas of what I am saying…I am assuming its a common table used across the data warehouse world.
Or feel free to let me know if the experts have better ideas and what could be done please !!
thanks for your help !
(re-editing the question to add more info that I just remembered …if my brain remebers it right…)
I think it had columns like
Start_Dt…End_Dt…Text
=====…=====…===
4/16/15…4/16/15…Today
4/15/15…4/15/15…Yesterday
4/1/15…4/30/15…This Month
3/1/15…3/31/15…Last Month
and then the join from DIM_DATE table would be as follows
DIM_DATE.DATE_KEY between DATE_RANGE.START_DT and DATE_RANGE.END_DT
Any standards stored procedures already exist out there to populate this table ?
Or maybe something standard in Informatica?
Thanks Again !!
iinquisitivee (BOB member since 2015-03-07)