Case insensitive search in Java DB (Derby)
You can use the UPPER() or LOWER() SQL functions on both your search argument and the field, like in
SELECT *
FROM mytab
WHERE UPPER(lastname) = UPPER('McDonalds')
The most common way to do this is to use generated columns. Here's a nice writeup from one of the Derby developers: http://blogs.oracle.com/kah/entry/derby_10_5_preview_generated