SQL #04 — Transform Your Data — SQL Functions & CASE WHEN Explained
hosiyar
0:00 / 0:00
SQL #04 — Transform Your Data — SQL Functions & CASE WHEN Explained
206 просмотров · 1 мес. назад
hosiyar
885 подписчиков
206 просмотров · 1 мес. назад
The data in your database is rarely in the shape you actually want. Names are in separate columns. Dates look ugly. Salaries need rounding. You need a label like "Senior" or "Junior" but the table only stores a number.
This lesson is about transforming data right inside your query — without changing anything in the database itself. We start by solving the challenge from the previous lesson, then move into SQL's built-in functions and the powerful CASE WHEN expression.
What you'll learn:
Quick revision — solving the challenge from SQL #03
CONCAT — combining columns together
String functions — UPPER, LOWER, LENGTH, TRIM, SUBSTRING and more
Number functions — ROUND, CEIL, FLOOR, ABS, MOD and more
Date functions — NOW, CURDATE, YEAR, MONTH, DATEDIFF and more
CASE WHEN — adding if-then-else logic inside a query
Combining functions and CASE WHEN in real, practical queries
Think of functions as mini tools that transform a value on the fly, and CASE WHEN as a way to teach your query to make decisions. By the end, your query results will look the way you actually need them to — not just however the raw data was stored.
📁 Practice SQL file & resources: https://github.com/deep473/hosiyar-re...
This is lesson #04 of the full "SQL Zero to Advanced" course. Lessons are in order — if you haven't watched #03 (WHERE, filtering & operators), watch that first.
🔗 Full SQL course playlist: • SQL Full Course — From Zero to Advanced, S...
#SQL #MySQL #SQLFunctions #CaseWhen #SQLForBeginners #LearnSQL