Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to write this sql?
anyone considered following ??
select a, least(cnt,100)
from (select a,count(*) from my_table group by a)
/
Raj
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlReceived on Tue Jul 20 2004 - 06:40:39 CDT
-----------------------------------------------------------------