About 93,400 results
Open links in new tab
  1. Subqueries (SQL Server) - SQL Server | Microsoft Learn

    Aug 21, 2025 · Look at an example of a subquery, which is a query that is nested in a SELECT, INSERT, UPDATE, or DELETE statement, or inside another subquery in SQL Server.

  2. SQL Subquery - GeeksforGeeks

    Sep 8, 2025 · 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.

  3. 5 SQL Subquery Examples - LearnSQL.com

    Nov 18, 2021 · A subquery, or nested query, is a query placed within another SQL query. When requesting information from a database, you may find it necessary to include a subquery into …

  4. SQL Subquery: A Comprehensive Guide - DataCamp

    Jan 16, 2025 · A SQL subquery is a nested query within another SQL statement used for complex data retrieval, filtering, and aggregation to enhance database queries.

  5. Understanding SQL Subqueries or Nested Queries - Tutorial …

    What Is a Subquery? A subquery, also known as a nested query or subselect, is a SELECT query embedded within the WHERE or HAVING clause of another SQL query. The data returned by …

  6. SQL Subquery

    In this tutorial, you'll learn about SQL subquery, a query nested within another query, to form flexible queries.

  7. SQL Subquery: A Complete Guide - Educative

    Mar 5, 2025 · SQL subqueries come in different types, each serving a unique purpose: Scalar subqueries return a single value. Multiple-row subqueries return a set of rows. Correlated …

  8. How to Use a Subquery in a SELECT Statement - GeeksforGeeks

    Jul 23, 2025 · A subquery (also known as a nested query or inner query) is a query placed inside another query. The subquery is executed first, and its result is used by the outer query for …

  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. Understanding SQL Subqueries: A Complete Guide with Examples

    Dec 18, 2024 · What is a Subquery in SQL? A subquery, also known as an inner query or nested query, is a query within another SQL query. It is enclosed within parentheses and is executed …