I need to locate rows in a database table that have a field with an upper case value.
E.g.: select * from Cust where Surname like 'COnTAiNS UpPERcASE VaLUeS'
Any assistance would be appreciated.
AJ
You can do a binary comparison using:
select *
from Cust
where cast(Surname as varbinary(120)) != cast(lower(Surname) as varbinary(120))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With