14/04/2026
Good morning, SQL fam! โ๏ธ
Day 4 is complete! You're doing math in SQL now. Multiplying, dividing, calculating like a pro!
You're officially halfway through Week 1. 5 days straight of showing up. That's consistency. That's growth. Keep pushing! ๐ช
Day 5 of 14 Days of ๐ฏ
Today's focus: WORKING WITH TEXT & STRINGS ๐
๐น Q1: Show product names in UPPERCASE and lowercase. Display original Product_Name, UPPER(Product_Name), and LOWER(Product_Name).
โ
My Solution:
sql
SELECT Product_Name, UPPER(Product_Name) AS Name_Uppercase, LOWER(Product_Name) AS Name_LowercaseFROM transactionsLIMIT 10;
Approach: UPPER() converts everything to capitals. LOWER() converts to lowercase. Great for standardizing text!
๐น Q2: Find all products that start with "Organic". Show Product_Name and Product_Category.
โ
My Solution:
sql
SELECT Product_Name, Product_CategoryFROM transactionsWHERE Product_Name LIKE 'Organic%'LIMIT 15;
Approach: LIKE 'Organic%' finds any product name starting with "Organic". The % means anything can come after.
๐น Q3: Find all products that end with "TV". Show Product_Name and Final_Amount.
โ
My Solution:
sql
SELECT Product_Name, Final_AmountFROM transactionsWHERE Product_Name LIKE '%TV'LIMIT 10;
Approach: LIKE '%TV' finds any product name ending with "TV". The % before means anything can come before.
๐ Learnings:
Today's "aha!" moment ๐ก:
The % wildcard is like a magic wand. Put it before, after, or both to find patterns anywhere in the text!
What I learned:
UPPER() / LOWER() = change case
LIKE = pattern matching
% = matches ANY characters (zero or more)
'Organic%' = starts with Organic
'%TV' = ends with TV
'%phone%' = contains "phone" anywhere
You're mastering text search! Now you can find anything in your data. ๐ฏ
Day 5 done โ
9 to go!