About 10,800 results
Open links in new tab
  1. SQL Subquery - GeeksforGeeks

    Apr 7, 2026 · A subquery in SQL is a query nested inside another SQL query. It allows complex filtering, aggregation and data manipulation by using the result of one query inside another.

  2. Subqueries (SQL Server) - SQL Server | Microsoft Learn

    Nov 18, 2025 · A subquery is also called an inner query or inner select, while the statement containing a subquery is also called an outer query or outer select. Many Transact-SQL statements that …

  3. SQL Subqueries - w3resource

    Feb 19, 2026 · A subquery is also called an inner query or inner select, while the statement containing a subquery is also called an outer query or outer select. The inner query executes first before its …

  4. SQL Subqueries - LearnSQL.com

    Nov 18, 2016 · A SQL subquery is a query within another query; this structure allows complex data retrieval across multiple tables in a single command. Subqueries are used in WHERE, FROM, and …

  5. SQL - Sub Queries - Online Tutorials Library

    An SQL Subquery, is a SELECT query within another query. It is also known as Inner query or Nested query and the query containing it is the outer query. The outer query can contain the SELECT, …

  6. SQL Subqueries Explained: Complete Guide with Examples (2026)

    Mar 23, 2026 · A subquery in the FROM clause creates a temporary result set (derived table) that you can query like a regular table. This is useful for multi-step transformations.

  7. What is a Subquery? - Database.Guide

    Nov 21, 2025 · Subqueries let you break down complex problems into smaller, more manageable pieces, making your SQL more readable and often more powerful. The outer query relies on the …

  8. SQL Subquery in SELECT: Examples & Syntax Guide

    Jun 26, 2023 · A subquery in SQL is a SELECT statement embedded inside another SQL statement – typically within a WHERE, FROM, or SELECT clause. SQL Server supports two types: basic …

  9. Subquery – SQL Tutorial

    A subquery in SQL is a query that is nested within another query. It is used to retrieve data that will be used in the main query as a filter condition, or as a source of data for a calculation.

  10. Writing Subqueries in SQL | Advanced SQL | ThoughtSpot

    Subqueries (also known as inner queries or nested queries) are a tool for performing operations in multiple steps. For example, if you wanted to take the sums of several columns, then average all of …