Home » Developer & Programmer » Reports & Discoverer » order by month
order by month [message #132625] Mon, 15 August 2005 05:28 Go to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
salam.
I have a matrix report with the following fields

item_name as matrix_row_field,
month as matrix_column_field
sum(col1) as data

it displays the data as below
APR AUG JAN
ball point 2 4 5

I am working on how to order the month as below.
JAN APR AUG
ball point 5 2 4


my query is as below:

select to_char(issue_date,'MON')as month,
items_issued.item_id,
rpad(items.item_name,50),
sum(qty_issued) as total
from items_issued,items
where items.item_id=items_issued.item_id
and to_char(issue_date,'YYYY')='2005'
group by to_char(issue_date,'MON'),items_issued.item_id,rpad(items.item_name,50)




Please help me.. I need it urgently..thanks in advance
riaz
Re: order by month [message #132680 is a reply to message #132625] Mon, 15 August 2005 11:35 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Isn't this one answered here:
http://www.orafaq.com/forum/m/132631/43055/#msg_132631

MHE
Previous Topic: report join problem
Next Topic: select/group by problems
Goto Forum:
  


Current Time: Mon Jun 03 00:00:58 CDT 2024