Thanks to all of you !
Can anybody help me a step further now. I have a date record with date_ts, year_id, month_id, quarter_id, week_id. Month_id, quarter_id and week_id are unique keys that start with value 1 from Jan 1st 1900. Year_Id is 1900, 1901 .. 2006. Any way to create
- week of year (values 1-53)
- week of month (values 1-5)
- week of quarter (values 1-13)
through a regular sql command ?