SQL Challenge: Using REPLACE(), CAST(), AVG(), and CEIL() Functions

Yesterday when I tackled a fun SQL challenge where I had to calculate the error between 2 columns where a number was lost due to a keyboard key. While I was trying to solve it, I was not able to do it at that moment, like how I do with the other sql challenge, but this one is a little bit trickier, as I didn't see this type of thing before. It was a great exercise for me in using the REPLACE() string function, converting the string to a number using the CAST(), calculating the values using the AVG(), which is common, and finally finishing up with CEIL(), a mathematical function that returns the next whole number, like 19.21 to 20.00. Through this, I strengthened my problem-solving mindset and reinforced my understanding of SQL functions in real-world scenarios. It's small challenges like these that sharpen the skills and build the confidence for bigger data engineering tasks. I also follow the "SQL Pocket Guide" book by Alice Zhao to keep myself prepared on SQL every day. #sql #dataengineering #learningbydoing #problemsolving #dataskills #opentowork

To view or add a comment, sign in

Explore content categories