I initially thought this is trivial. Then thought 'binary' might do it. I am unsure at this point.
Name
----
John
MARY
Kin
TED
I would like to query just MARY and TED which are in all upper case. How would I query this?
If your collation is case insensitive then you need to use a BINARY
comparison:
SELECT *
FROM yourtable
WHERE Name = BINARY UPPER(Name)
See it working online: sqlfiddle