There are three case manipulation functions in SQL:
- LOWER: converts character into Lowercase.
- UPPER: converts character into uppercase.
- INITCAP: converts character values to uppercase for the initials of each word.
In SQL, there are several case manipulation functions that you can use to change the case of strings. The specific functions available can vary slightly depending on the database management system you’re using, but some common ones include:
- UPPER(): Converts all characters in a string to uppercase.
SELECT UPPER(column_name) FROM table_name;
- LOWER(): Converts all characters in a string to lowercase.
SELECT LOWER(column_name) FROM table_name;
- INITCAP() or INITIAL_CAP(): Converts the first character of each word to uppercase and the rest to lowercase.
— Example for INITIAL_CAP()-- Example for INITCAP()
SELECT INITCAP(column_name) FROM table_name;
SELECT INITIAL_CAP(column_name) FROM table_name;
Note that the availability of these functions may vary depending on the database system you are using. The examples above are generic and should work in many relational database systems like MySQL, PostgreSQL, Oracle, and SQL Server. Always refer to the documentation of the specific database system you are using for accurate information.