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 -> Re: simple query help

Re: simple query help

From: Gabriel Millerd <millerd_at_ns1.rli-net.net>
Date: 1 Jan 2000 21:55:39 GMT
Message-ID: <84lt4r$71g$1@news.powerisp.com>


Wolf <wolf_at_mrsoxx.com> wrote:
> select a.dept, a.active, b.inactive
> from
> (select dept, count(*) active from <table> where status = 'a' group by
> dept) a,
> (select dept, count(*) inactive from <table> where status = 'i' group by
> dept) b
> where
> a.dept = b.dept
> /

        Wow, thanks

---

Gabriel Millerd        |   I would never lie. I willingly participated in a
RLI Internet Services  |   campaign of misinformation.  -Fox Mulder, XFiles
System Admin Attribu   |                      "Shadows"
http://www.rli-net.net |
Received on Sat Jan 01 2000 - 15:55:39 CST

Original text of this message

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