OLADAYO OLAEWE (Ph.D In-View)’s Post

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 #SQLwithFunmi 🎯 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! Innotech IT Consultancy is hosting a 14Days SQL challenge And we will be using the innotechhub app for the Challenge 📲 Download now: App Store : https://lnkd.in/e7wSGR78 Play Store : https://lnkd.in/enD3NDsp #innotechITConsultancy #SQLwithFunmi #14DaysOfSQL #LearningInPublic #DataAnalytics

  • graphical user interface, application
See more comments

To view or add a comment, sign in

Explore content categories