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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to write this sql?

Re: how to write this sql?

From: Wolfgang Breitling <breitliw_at_centrexcc.com>
Date: Mon, 19 Jul 2004 16:06:16 -0600
Message-Id: <6.1.0.6.2.20040719154831.03511510@pop.centrexcc.com>


select x, least(count(1),100) cnt from ABC group by x;

There is no way to stop counting for a particular x once it reached 100

Regards

Wolfgang Breitling
Centrex Consulting Corporation
http://www.centrexcc.com



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Mon Jul 19 2004 - 17:03:03 CDT

Original text of this message

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