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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return only records containing non-numeric characters

Status
Not open for further replies.

lucasm

IS-IT--Management
Feb 13, 2002
114
US
I'm trying to weed out certain records returned from a query, eliminating the ones where the "name" varchar field contains a number - here's an example:

1103 TS - Crew
1203 TS - Crew
Adamski
Allanbrook
Allen
Standard TS - Div 20

I want the first two and the last one to be ignored.
 
WHERE [name] NOT LIKE '%[0-9]%'

Refer to the BOL for more information on WILDCARDS. Look up LIKE.

-SQLBill

Posting advice: FAQ481-4875
 
thanks, that worked a treat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top