Skip to main contentSkip to solution

Which of the following will display the 'custname' (name of the customers) in lowercase and 'address' in uppercase from a table CUSTOMER?

Solution

✅ Correct Option: 2

SQL's string functions are LOWER() (or LCASE()) to convert text to lowercase and UPPER() (or UCASE()) to convert text to uppercase. So SELECT LOWER(custname), UPPER(address) from CUSTOMER; is the valid query.


Options 1, 3 and 4: LOWERCASE() and UPPERCASE() are not SQL functions, so any query using them gives an error. These names are a common trap because they sound natural.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question