About 134,000 results
Open links in new tab
  1. 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 use scalar, …

  2. SQL Subquery

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

  3. SQL Subquery - GeeksforGeeks

    Nov 22, 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 functionality.

  4. 10 Example of SubQuery in SQL - SQLrevisited

    Jun 3, 2025 · In this adventure, we're not just scratching the surface; we're diving headfirst into ten real-world scenarios where subqueries shine. These are the SQL gems that will elevate your data …

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

    In this guide, we’ll explore subqueries in SQL, covering their various uses, types, applications, and best practices to make the most out of this powerful feature. By the end of this article, we’ll have a solid …

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

    Nov 18, 2025 · The code samples in this article use the AdventureWorks2025 or AdventureWorksDW2025 sample database, which you can download from the Microsoft SQL Server …

  7. SQL Subqueries: A Beginner's Guide (with Code Examples) - Dataquest

    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 be …

  8. 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 subqueries, …

  9. SubquerySQL Tutorial

    Here is an example of a subquery used in the WHERE clause of a SELECT statement: In this example, the subquery is used to retrieve the customer IDs of all orders that were placed after January 1, …

  10. SQL Subqueries with Examples - from Basics to Advanced

    Jun 30, 2023 · In SQL, a subquery refers to a query nested within another query, such as a SELECT, UPDATE, INSERT, or DELETE statement. This subquery functions as a condition in the primary …