About 109,000 results
Open links in new tab
  1. SQL | Subquery - GeeksforGeeks

    Jun 11, 2025 · In SQL, a subquery can be defined as a query embedded within another query. It is often used in the WHERE, HAVING, or FROM clauses of a statement. Subqueries are …

  2. SQL Subqueries - w3resource

    Feb 13, 2025 · The SQL subquery is a SELECT query that is embedded in the main SELECT statement. The subquery can be nested inside a SELECT, INSERT, UPDATE, or DELETE …

  3. SQL Subquery - SQL Tutorial

    A subquery is an SQL query nested inside another query. The query that contains a subquery is known as an outer query. To write a subquery, you need to have a deep understanding of the …

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

    Nov 22, 2024 · 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 …

  5. 5 SQL Subquery Examples - LearnSQL.com

    Nov 18, 2021 · In this article, I provide five subquery examples demonstrating how to use scalar, multirow, and correlated subqueries in the WHERE, FROM/JOIN, and SELECT clauses. A …

  6. 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.

  7. SQL Subqueries: A Beginner’s Guide (with Code Examples)

    Jun 10, 2022 · Every data scientist needs to know their way around a SQL database, including subqueries. In this article, we'll cover the basics of SQL subqueries, their syntax, how they can …

  8. How to Use the SQL Subquery: A Detailed Guide - Codecademy

    A SQL subquery, otherwise known as a nested SQL query, is a query within another query that helps filter, transform, or aggregate data before passing the results to the main query. We can …

  9. SQL Subqueries: The Complete Guide | Database Star: Home

    Oct 22, 2018 · A subquery is a SELECT query inside another query. It’s also called a nested query in SQL. A subquery is often used inside SELECT queries but can also be used in other …

  10. The Ultimate Guide To SQL Server Subquery - SQL Server Tutorial

    A subquery is a query nested inside another statement such as SELECT, INSERT, UPDATE, or DELETE. Let’s see the following example. Consider the orders and customers tables from the …

Refresh