About 373,000 results
Open links in new tab
  1. sql - How to use "cross apply" when parsing xml? - Stack Overflow

    There are two forms of APPLY: CROSS APPLY and OUTER APPLY. CROSS APPLY returns only rows from the outer table that produce a result set from the table-valued function. OUTER …

  2. SQL Server: XML node join & Cross Apply - Microsoft Q&A

    Oct 27, 2021 · So CROSS APPLY applies nodes () to each row based the first table and returns only the related rows that produce a result set. So there is no need to add extra column to join …

  3. Query SQL Server Database Table XML data using CROSS APPLY

    Although it is very similar to query XML variable, querying XML data column requires the use of SQL CROSS APPLY join. Cross Apply enables to execute SQL XML query on all rows of the …

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

  5. SQL Server XML SELECT child nodes dynamically

    In SQL Server, XML data can be stored in XML data type columns. To retrieve specific child nodes from an XML column dynamically, you can use the nodes () method with the CROSS …

  6. Mastering XML Parsing with CROSS APPLY in SQL Server

    May 26, 2025 · Learn how to efficiently parse XML data in SQL Server using `CROSS APPLY`. Follow this guide for best practices, examples, and results. ---...more

  7. Mastering CROSS APPLY and OUTER APPLY in SQL Server: …

    Jun 12, 2025 · SQL Server's APPLY operators (CROSS APPLY and OUTER APPLY) solve limitations of traditional joins by enabling: Supported since SQL Server 2005, these operators …

  8. Using T-SQL to Transform XML Data to a Relational Format

    Oct 29, 2014 · In the following sections of this article, we will go over each of these XML segments in the AuthorProfile XML column and demonstrate the T-SQL queries for populating …

  9. Exploring the Versatility of CROSS APPLY in SQL Server

    In this example, the CROSS APPLY operator is used to shred the XML data stored in the Store.Demographics column and extract the values of AnnualSales and AnnualRevenue.

  10. sql server - Why is CROSS APPLY needed when using XPath …

    Which I presume is why the CROSS APPLY modifier is needed. Not because you are joining anything, but because the SQL Server parser will refuse to recognize .nodes unless it's …