Date dimension in data warehouse

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
harborboy76
Premium Member
Premium Member
Posts: 13
Joined: Wed Apr 07, 2010 11:50 pm

Date dimension in data warehouse

Post by harborboy76 »

I am new to DataStage and would like to find out what other people are
using to populate some common dimensions like date or year dimension.

What are most common attributes and how to populate the table appropriately ?
Do you guys use stored procedure and database function to add dates ?
N.K.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I typically use a server job (with a Transformer stage as a row generator) or a parallel job (with a Row Generator stage) to generate the dates and surrogate keys.

Attributes in a date dimension vary with different customers' requirements.
Typically they will include:
  • date components (day, month, quarter and year numbers, weekday)

    range components (e.g. date of last day of month)

    intelligence components (e.g. weekday/weekend)

    calendar year and financial year components

    other (e.g. season)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
krishnuka123
Participant
Posts: 5
Joined: Sun Jan 15, 2006 11:45 pm
Contact:

Re: Date dimension in data warehouse

Post by krishnuka123 »

For date dimension, should write Procedure along with require attribute as per the business requirement. When you compile the job corresponding data will fetch form your database at run time. 8)
M.K.Madhav
Post Reply