Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> group by problem!!!

group by problem!!!

From: gil guerillot <gil.guerillot_at_ratp.fr>
Date: Fri, 17 Aug 2001 09:37:14 +0100
Message-ID: <3B7CD7B9.20CBCE8A@ratp.fr>


i'd like to obtain on the same line of my sql select query:

select sector,count(event) closed,count(event) all_events from table
group by sector

but all_events is for all events of course (no where clause on the status) and closed is only for events with status 'C'

i did it with a union select but i obtain 2 lines...

how can i do ???

thanks Received on Fri Aug 17 2001 - 03:37:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US