Hi guys ,
I need to make a matrix report like the following
Description Year(2002 Full),Year(2002 Till Date),Year(2002 Till Month),Year(2003 Full),Year(2003 Till Date),Year(2003 Till Month)
Year its easy to get in the query as the following
select item,sum(qty)to_char(v_date,'YYYY') from table group by item v_date
but how will i get the year to date and year till month
item will be my row
qty will be cell
and year will be column
If the current date is 25th oct 2004 so in above query i need as
2002 Full Year i.e jan 2002 to dec 2002
2002 YTD Jan 2002 - 25t oct 2002
2002 Year To Month - jan2002 oct 2002
2003 Full Year i.e jan 2003 to dec 2002
2003 YTD Jan 2003 - 25t oct 2003
2003 Year To Month - jan 2003 oct 2003
Any help will be appreciated
I need to make a matrix report like the following
Description Year(2002 Full),Year(2002 Till Date),Year(2002 Till Month),Year(2003 Full),Year(2003 Till Date),Year(2003 Till Month)
Year its easy to get in the query as the following
select item,sum(qty)to_char(v_date,'YYYY') from table group by item v_date
but how will i get the year to date and year till month
item will be my row
qty will be cell
and year will be column
If the current date is 25th oct 2004 so in above query i need as
2002 Full Year i.e jan 2002 to dec 2002
2002 YTD Jan 2002 - 25t oct 2002
2002 Year To Month - jan2002 oct 2002
2003 Full Year i.e jan 2003 to dec 2002
2003 YTD Jan 2003 - 25t oct 2003
2003 Year To Month - jan 2003 oct 2003
Any help will be appreciated