TheAnalyst / SQLAll lessons ↗
Day 5 · Core SQL · 10–20 minutes

Text and numeric functions

Transform values with functions such as UPPER, LOWER, LENGTH and ROUND.

01 · Learn

The idea

Transform values with functions such as UPPER, LOWER, LENGTH and ROUND. Read the query line by line and identify the input table, the transformation, and the shape of the result before running it.

SELECT UPPER(name) AS name_upper FROM customers ORDER BY name;
Read it actively

Before running the example, predict the output columns and whether the query returns one row, many rows, or possibly no rows.

02 · Recall

Explain it without looking

In your own words, explain the main SQL feature in today’s lesson and why it answers the question.

03 · Solve

Run your own query

Show customer names in uppercase, ordered by the original name.

Loading browser SQL engine…
04 · Repeat

Close the loop