What is a subquery? Subquery is a query nested inside another query statement. It allows the query to be modular which would otherwise require multiple queries to achieve the same result. It runs first and the result is used as input by another query. When to use it? It is an essential tool when used in the following scenarios: Filtering row data using the results from another query Applying aggr

SQL Subquery and CTEs( Common Table Expressions)
Nancy Mikia·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.