I need to put amount ‘0’ if the row exist but has no amount in my “where ” conditions.
the original command is:
select t.aaa, count (t.bbb), sum (t.ccc)
from nrb t
where t.vvv IN ('3','4','5','6','D','E','F')
and t.ddd like '50%'
and t.eee >= TO_DATE('2012/03/21','YYYY/MM/DD')
and t.eee <= TO_DATE('2012/07/21','YYYY/MM/DD')
group by t.aaa
order by t.aaa
and the result is:
“result” tab in excel file.
I need this result:
“result 2” tab in excel file.
the file : I did send full result .
http://www.mediafire.com/?69cc4ay6cyt9cr9
how can I have this?
Pl/sql 7.0.2 unlimited user license
oci : 9.2
oracle db : 11.1.0.6.0 enterprise
os : win xp
You probably want: