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

Upper Case Query 2

Status
Not open for further replies.

kchaudhry

Programmer
Nov 10, 2003
256
US
Hi,

I am using SQL Server 2000. I have a field in the table which has value "do not close". In some cases the data is lower case and then in other cases it is upper case. I want to write a query to only return the upper case instances. Can someone please help me with this?

Thanks,

Kchaudhry
 
Try this ....

select * from tblname
where cast(fldname as varbinary) = cast (upper(fldname) as varbinary)




Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top