Re: Return first number in a string

From: Svend Jensen <svend.jensen_at_it.dk>
Date: Tue, 11 Feb 2003 20:50:45 +0100
Message-ID: <3E495415.5050308_at_it.dk>


Check the article, the power of decode.
/Svend Jensen

GP wrote:
> What's the easiest way to return the number component of a string
> where the string always starts with a number when it's a meaningful
> value. Can I do it within a select statement, or do I need something
> like a stored function?
>
> Example
>
> 90% should return 90
> 90 and rising should return 90
> Ordered in Error should return 0 or null
>
> Appreciate thoughts....
Received on Tue Feb 11 2003 - 20:50:45 CET

Original text of this message