---
title: "Discussion on \"How to Work with Subqueries in SQL\" | Hashnode"
description: "Discussion on \"How to Work with Subqueries in SQL\". Whenever you see a query nested inside another query in SQL, that's a subquery. A subquery is also known as an inner query while the one that contains it is called the main or outer query.\nSubqueries"
url: "https://hashnode.com/posts/how-to-work-with-subqueries-in-sql/6a837db5b64d34f31873c306"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Work with Subqueries in SQL](https://freecodecamp.org/news/how-to-work-with-subqueries-in-sql?utm_source=hashnode&utm_medium=feed)

Whenever you see a query nested inside another query in SQL, that's a subquery. A subquery is also known as an inner query while the one that contains it is called the main or outer query. Subqueries

Aug 17 · 22 min read · freecodecamp.org  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#subquery](https://hashnode.com/tag/subquery)
-   [#correlated-subquery](https://hashnode.com/tag/correlated-subquery)
-   [#non-correlated-subquery](https://hashnode.com/tag/non-correlated-subquery)

## Written by

[Abdullah Rufai](https://hashnode.com/@abdullah797)

@abdullah797 · Lagos, Nigeria

  
[View profile](https://hashnode.com/@abdullah797)

Data Analyst

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
