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!

Finding Records without A-Z 1

Status
Not open for further replies.

campbere

Technical User
Oct 10, 2000
146
US
I am trying to find all the records for a column that does not have all capital letters, ABCDEFGHIJKLMNOPQRSTUVWXYZ. I tried the following:

Select widget_column
from widget_table
where widget_column not like '%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'

However I still got records back that had all capital letters like:

WIDGETPRODUCT

Can someone help?

So I want to identify records like:

Widgetproduct
Widget(product)
WidgétPRODUCT
 
The query you use returns all records that doesn't contain substring 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', and this is obviously no what you need. Try
Code:
where ltrim(widget_column,'ABCDEFGHIJKLMNOPQRSTUVWXYZ') is not NULL
This should return all values not consisting of uppercase letters only.

Regards, Dima
 
Or you could try

Code:
WHERE widget_column != upper(widget_column)

Elbert, CO
1202 MST
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top