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 [Q]

Re: Simple Query [Q]

From: Greg Scholey <Greg.Scholey_at_pipe.nova.ca>
Date: 1997/05/13
Message-ID: <33788CA1.3C3D@pipe.nova.ca>#1/1

Try the following if the table is small...

create view vstaff as
select deptno, count(*) staffno group by deptno;

select deptno, staffno from vstaff
 where staffno = (select max(staff) from vstaff);

It's quick and dirty, but it works.
Greg... Received on Tue May 13 1997 - 00:00:00 CDT

Original text of this message

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