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

    Nov 18, 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 Server Subquery - GeeksforGeeks

    Jul 23, 2025 · A subquery is a 'Select' query placed inside another query or SQL statement. A subquery can be used with a SELECT, INSERT, UPDATE, or DELETE statement and is generally placed …

  3. The Ultimate Guide To SQL Server Subquery

    In this tutorial, you will learn about the SQL Server subquery concept and how to use various subquery types to query data.

  4. SQL Server Subquery Example

    May 13, 2019 · This tutorial section introduces the topic of subqueries by presenting easy-to-follow code samples that demonstrate the use of subqueries in WHERE clauses, SELECT list items, and with …

  5. SQL Server: Subqueries - TechOnTheNet

    What is a subquery in SQL Server? In SQL Server, a subquery is a query within a query. You can create subqueries within your SQL statements. These subqueries can reside in the WHERE clause, the …

  6. SQL Subquery

    Summary: In this tutorial, you’ll learn how to use SQL subqueries to form flexible queries for retrieving data from the database. A subquery is an SQL query nested inside another query. The query that …

  7. SQL Server SUBQUERY - Tutorialsbook

    What is SUBQUERY in SQL Server? A SUBQUERY is a SQL query within a SQL statement. A subquery can be part of a SELECT, INSERT, UPDATE or DELETE statement and is itself always a …

  8. Using a Subquery in a SELECT statement - Simple Talk

    Jun 26, 2023 · When a SELECT statement is embedded within another statement it is known as a subquery. There are two types of subqueries: basic subquery and correlated subquery. In this article …

  9. Step by Step Guide for Writing Subqueries in MS SQL Server | MoldStud

    Oct 27, 2025 · Practically speaking, subqueries aren’t limited to the WHERE clause. They perform equally well inside FROM and SELECT sections, allowing intermediate result sets or inline calculations.

  10. T-SQL Subquery in SQL Server

    In SQL Server, a correlated subquery is a type of subquery that refers to a column from the outer query, and as a result, the subquery's results are dependent on the values in the outer query. This type of …