Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ISNUMERIC() function Help

641325Mar 11 2009 — edited Mar 11 2009
Hello,
I am having an table with the column type as
varchar.
The column value may be anything.Its include
numbers,Strings,*,#,%.etc..
But i like to gee the values which is in between
0 to 100.
So i tried as
select attribute2 from history where
ISNUMERIC(attribute2)=1 and cast(Attribute2
as integer) < cast('100' as integer) and
cast(Attribute2 as integer) > cast('0' as
integer)--attribute2<>100

Here
attribute2 - column name varchar
History - table name
Its giving the following error "cannot convert #
to int".
But i am filtering the column values by
ISNUMERIC(attribute2)=1 before casting to
integer.
Please any one guide me to solve this issue!!!
Thank you!!!
This post has been answered by Frank Kulash on Mar 11 2009
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 8 2009
Added on Mar 11 2009
15 comments
18,668 views