About 166,000 results
Open links in new tab
  1. SQL Subquery - SQL Tutorial

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

  2. SQL Subquery - GeeksforGeeks

    Sep 8, 2025 · These examples showcase how subqueries can be used for various operations like selecting, updating, deleting or inserting data, providing insights into their syntax and …

  3. SQL Subqueries - w3resource

    Feb 13, 2025 · What is subquery in SQL? A subquery is a SQL query nested inside a larger query. The subquery can be nested inside a SELECT, INSERT, UPDATE, or DELETE …

  4. 5 SQL Subquery Examples - LearnSQL.com

    Nov 18, 2021 · SQL subqueries are basic tools if you want to communicate effectively with relational databases. In this article, I provide five subquery examples demonstrating how to …

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

    Aug 21, 2025 · A subquery can be nested inside the WHERE or HAVING clause of an outer SELECT, INSERT, UPDATE, or DELETE statement, or inside another subquery. Up to 32 …

  6. SQL Subquery: A Comprehensive Guide - DataCamp

    Jan 16, 2025 · SQL subqueries are a powerful tool in database management, allowing for more complex and efficient data retrieval. This guide will walk you through the fundamentals of SQL …

  7. SQL - Sub Queries - Online Tutorials Library

    A subquery consists of all the clauses an ordinary SELECT clause can contain: GROUP BY, WHERE, HAVING, DISTINCT, TOP/LIMIT, etc. However, an ORDER BY clause is only used …

  8. SubquerySQL Tutorial

    Subqueries are enclosed within parentheses and can be used in various SQL statements such as SELECT, INSERT, UPDATE, and DELETE. Subqueries are used to retrieve data from one or …

  9. SQL Subquery (With Examples) - Programiz

    SQL subqueries are queries inside another query. In this tutorial, you will learn about subqueries in SQL with the help of examples.

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

    Jul 23, 2025 · Subquery in a SELECT statement can be used to return a single value, multiple values or even a complete set of data depending on how it is structured. The most common …