SQL changing a value to upper or lower case

Joshua Hudson picture Joshua Hudson · Dec 4, 2008 · Viewed 196.3k times · Source

How do you make a field in a sql select statement all upper or lower case?

Example:

select firstname from Person

How do I make firstname always return upper case and likewise always return lower case?

Answer

Jared picture Jared · Dec 4, 2008
SELECT UPPER(firstname) FROM Person

SELECT LOWER(firstname) FROM Person