Created
April 5, 2018 16:26
-
-
Save lkrych/ad7267b9afe182b720ae6a23a6983c4f to your computer and use it in GitHub Desktop.
Demonstrating the use of the UPPER function in SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# people is some subset from the Persons table | |
people = people.where("UPPER(first_name) = UPPER(?) OR UPPER(last_name) = UPPER(?)", params[:fname], params[:lname]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment