DataBolt

SQL LEARNING PLATFORM

21

CHAPTER 21

String Functions

Manipulating and transforming text data.

4

Learning Blocks

SQL

Interactive Queries

In This Chapter

Concepts you'll master

1

UPPER, LOWER, TRIM — basic cleanup

2

CONCAT — combining strings

3

SUBSTRING, LEFT, RIGHT — extracting parts

4

REPLACE, INSTR — search and replace

Real Examples

SQL QUERY
SELECT CONCAT(name, ' — ', city, ', ', country) AS profile
FROM customers;

Exercise

Practice your SQL skills

SQL EDITOR
Press semicolon (;) to auto-run query

Tasks

Complete all SQL challenges

1

Convert all employee names to uppercase.

Current Task
2

Convert all customer names to lowercase.

3

Find the length of each employee's name.

4

Combine employee name and department into a single column.

5

Extract first 3 characters of each customer's city.

Need help solving this task?