Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to write this sql?
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
![]() |
![]() |