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: Looking for a SQL Function

Re: Looking for a SQL Function

From: R. P. <r_pol12gar_at_hotmail.com>
Date: Wed, 2 Nov 2005 21:09:10 -0800
Message-ID: <-bWdnR3e9MH0BvTenZ2dnUVZ_tadnZ2d@comcast.com>


"Rene Nyffenegger" <rene.nyffenegger_at_gmx.ch> wrote:
>> SELECT (LENGTH('abcdefabc') - LENGTH(REPLACE('abcdefabc','abc'))) /
>> LENGTH('abc')
>> FROM dual;
>
> Very clever! Someone is using his brain.

You took the words out of my mouth. Clever and elegant indeed. Just what I was looking for, using pure SQL, not PL/SQL.

Thanks Ralf,
Rudy Received on Wed Nov 02 2005 - 23:09:10 CST

Original text of this message

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