# Subqueries & CTEs: Two Ways to Query Inside a Query
Sometimes one query needs the result of another query to work. SQL gives you two main tools for that: subqueries and CTEs (Common Table Expressions)…
Tech news from the best sources
Sometimes one query needs the result of another query to work. SQL gives you two main tools for that: subqueries and CTEs (Common Table Expressions)…
Some data isn't flat. An employee has a manager, who has a manager, who has a manager, all the way up to the boss at the top. A comment can be a rep…
One of the most common questions I get from developers working with SQL is: Should I use a CTE or create a temporary table? Both solve similar probl…