Query w/Group By
- From: "amerar@xxxxxxx" <amerar@xxxxxxx>
- Date: Wed, 27 Feb 2008 11:38:59 -0800 (PST)
Who do management people always want it complex?
I need to run this query grouping by user Id and month:
SELECT userid||','||count(*)||','||sum(tranamt_n)
FROM ej1
WHERE effctvdate>=to_date('01/01/2007','mm/dd/yyyy')
and corrstat=' ' and tranamt_n>0
and officename='Linebarger'
group by userid, TO_CHAR(SYSDATE,'MM');
I have yet to figure this one out........
.
- Follow-Ups:
- Re: Query w/Group By
- From: shakespeare
- Re: Query w/Group By
- Prev by Date: will there be data loss?
- Next by Date: Re: Oracle as Front End for Ms Access
- Previous by thread: will there be data loss?
- Next by thread: Re: Query w/Group By
- Index(es):