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: count distinct

Re: count distinct

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Wed, 23 Jun 2004 22:26:23 -0700
Message-ID: <1088054810.729780@yasure>


Romeo Olympia wrote:

> Uh, why not this???
>
> select count(distinct column1), count(distinct column2),
> count(distinct column3), count(distinct column4)
> from mytable;

Because it is totally unnecessary.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_103a.htm#2065826

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Thu Jun 24 2004 - 00:26:23 CDT

Original text of this message

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