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

Home -> Community -> Usenet -> c.d.o.server -> Re: Specialised Counts

Re: Specialised Counts

From: Guido Konsolke <Guido.Konsolke_at_triaton.com>
Date: Fri, 4 Apr 2003 12:38:23 +0200
Message-ID: <1049452509.552808@news.thyssen.com>


"Mark Starmer" wrote...
> Is there a way (perhaps using nested SQL) to count the number of
> occurances of each distinct record ie
>
> Input
> -----
> John
> John
> John
> Jim
>
> Output
> ------
> John - 3
> Jim -1
>
> Thanks a lot
>
> M Starmer

Hi Mark,

do you mean something like
'select input, count(*) from <yourtable>  group by input'?

Or did I totally miss the point?

hth,
Guido Received on Fri Apr 04 2003 - 04:38:23 CST

Original text of this message

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