all groups > sql server programming > october 2007 >
You're in the

sql server programming

group:

finding CASE



finding CASE Ant
10/3/2007 11:19:01 PM
sql server programming: Hi, I need to return any record that is not upper case in a column.

e.g
SELECT * from table1
WHERE col1 <> UPPER(Col1)

or something along the lines of this

Is there anyway I can do this?

Thanks very much for any suggestions

Re: finding CASE Razvan Socol
10/3/2007 11:52:23 PM
[quoted text, click to view]

Hello, Ant

You need to use a case-sensitive collation for this comparison, for
example:

SELECT * FROM tbl WHERE col1<>UPPER(col1)
COLLATE SQL_Latin1_General_CP1_CS_AS

--
Razvan Socol
AddThis Social Bookmark Button