About 170,000 results
Open links in new tab
  1. SQL Server CROSS APPLY and OUTER APPLY Helpful Examples

    Oct 10, 2025 · Learn about SQL Server CROSS APPLY and OUTER APPLY and how they differ from regular JOINs and how to use these along with scripts and a video.

  2. SQL Server OUTER APPLY

    Summary: in this tutorial, you will learn how to use the SQL Server OUTER APPLY clause to perform a left join of a table with a table-valued function or a correlated subquery.

  3. sql server - Where to use Outer Apply - Stack Overflow

    Jan 8, 2015 · In OUTER APPLY, it uses joining WHERE M.ID=D.ID inside the OUTER APPLY, so that each ID in Master will be joined with TOP 2 dates which will bring the following result.

  4. The Difference between CROSS APPLY and OUTER APPLY in SQL

    In this article we will take a look at the CROSS APPLY and OUTER APPLY operators. We will see how they are implemented practically with the help of an example and will also discuss how they differ …

  5. FROM clause plus JOIN, APPLY, PIVOT (T-SQL) - SQL Server

    If you want the query to produce rows for those departments without employees, which will produce null values for the EmpID, EmpLastName and EmpSalary columns, use OUTER APPLY instead.

  6. Cross Apply And Outer Apply With Examples - GeeksArray.com

    This article describes Cross Apply and Outer Apply and gives some examples with functions. The Apply operator joins two table valued expressions, the table on right is evaluated every time for each row of …

  7. Using OUTER APPLY in SQL Server - MSSQL Query

    Apr 6, 2023 · In SQL Server, OUTER APPLY is a type of JOIN and is typically used with a subquery or a table-valued function (TVF). For each row of the query, OUTER APPLY applies the subquery or TVF …

  8. OUTER APPLY in SQL Server -- When and Why to Use It

    Sep 22, 2025 · What is OUTER APPLY? OUTER APPLY is a table operator introduced in SQL Server 2005 that allows us to invoke a table-valued function for each row returned by an outer table …

  9. Mastering CROSS APPLY and OUTER APPLY in SQL Server: Advanced …

    Jun 12, 2025 · SQL Server's APPLY operators (CROSS APPLY and OUTER APPLY) solve limitations of traditional joins by enabling: Row-by-row processing (like a foreach loop in code)

  10. CROSS APPLY and OUTER APPLY - The Sql Dev

    Nov 8, 2022 · At first glance, it can seem that an APPLY and JOIN are the same. However, joins are used to combine two results sets together whereas the apply operator evaluates an expression …