How do you select a field that contains only uppercase character in mysql or a field that doesn\'t contain any lower case character?
SELECT * FROM table1 WHERE (columnname COLLATE latin1_bin )=UPPER(depart);
Found this in the comments - it deserves a post of its own:
SELECT * FROM mytable WHERE BINARY mycolumn = BINARY UPPER(mycolumn);
The problem with WHERE UPPER(mycolumn) = mycolumn
is the collation, and it depends on your table what you can use there.