Member-only story
Two Advanced SQL Techniques That Can Drastically Improve Your Queries
Learn about Common Table Expression (CTE) and Window Functions
SQL is the bread and butter of every data professional. It doesn’t matter if you are a data analyst, data scientist, or data engineer, you need to have a solid understanding of how to write clean and efficient SQL queries.
This is because behind any rigorous data analysis or any sophisticated machine learning model is the underlying data itself, and this data has to come from somewhere.
Hopefully after reading my introductory blog post to SQL, you would have already learned that SQL stands for Structured Query Language and it is a language that is used to retrieve data from a relational database.
In that blog post, we went over some fundamental SQL commands such as SELECT
, FROM
, and WHERE
which should cover most of the basic queries you will come across when using SQL.
But what happens if those simple commands are simply not enough? What happens if the data you want demands a more robust approach to query?
Well, look no further because today, we will go over two new SQL techniques that you can add to your toolkit that will take your queries to the next level. These techniques are called Common…