Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Not Numeric

Status
Not open for further replies.

PWD

Technical User
Jul 12, 2002
823
GB
Good morning, I apologise if this isn't the correct forum but "out there" I can't seem to find a sensible answer. I have been given an application that uses Oracle SQL and all I want to do is to select records where the LastName field is neither empty, nor "." nor numeric. I can do

Code:
is not null[indent][/indent]<> '.'

But can't see that there's an "ISNUMERIC" or something similar. This is just a test environment so I'm not looking to forensically clean that field - just trying play around with the data.

Many thanks,
D€$
 
Oh, of course!!!

Code:
and trim(translate(PN.LAST_NAME,'0123456789',' ')) is not null

Many thanks,
D€$
 
There is always
Code:
PATINDEX('%[^0-9]%', PN.Last_Name) > 0

djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top