Hi
Quick query. I would like to select month ends from a table of date
There is a date dimension table (e.g. TAB_DATE_DIM) that contains a date column row for all dates/days in the year :-
01/01/2001
02/01/2001
03/01/2001
....
31/01/2001
....
28/02/2001
....
01/01/2007
02/01/2007
03/01/2007
what i would like to do is use a query to select month ends from this table, so results will be :-
31/01/2001
28/02/2001
31/01/2001
30/01/2001
....
....
....
31/01/2007
28/02/2007
31/01/2007
30/01/2007
Any Ideas, sure the query has gotta use a max & group by somewhere
cheers
Quick query. I would like to select month ends from a table of date
There is a date dimension table (e.g. TAB_DATE_DIM) that contains a date column row for all dates/days in the year :-
01/01/2001
02/01/2001
03/01/2001
....
31/01/2001
....
28/02/2001
....
01/01/2007
02/01/2007
03/01/2007
what i would like to do is use a query to select month ends from this table, so results will be :-
31/01/2001
28/02/2001
31/01/2001
30/01/2001
....
....
....
31/01/2007
28/02/2007
31/01/2007
30/01/2007
Any Ideas, sure the query has gotta use a max & group by somewhere
cheers
Comment