I have a field in my database that contains email addresses.
Some of the email addresses are lower case, some are upper case and some are mixed.
SELECT * FROM EMPLOYEES WHERE EMAIL='john@example.com'
returns a row
SELECT * FROM EMPLOYEES WHERE EMAIL='JOHN@example.com'
returns no rows
What can i do to always get a record back no matter what my input is? so John, JOHN, john and any combination will return his record.
I am running the query via a Stored Procedure from my C# Application. I just found out that this is Oracle 11.2g