Skip to content

../notes_to_myself

  • Home
  • Portfolio
  • Sample Page

Tag: XQuery

SQL Server : Simple XQuery Using .nodes() With CROSS APPLY

–simple xquery example utilizing .nodes() with a CROSS APPLY
SELECT
X.value(‘OrderId[1]’, ‘VARCHAR(25)’) As [orderid],
X.value(‘Status[1]’, ‘VARCHAR(10)’) As [status]
FROM YourTable
CROSS APPLY xmlField.nodes(‘head/body/response/orders/order’) AS T(X)
WHERE
X.value(‘Status[1]’, ‘VARCHAR(10)’) =‘O’
Author Chrystal SanderPosted on May 31, 2013July 26, 2023Categories SQL, XMLTags SQL Server, XQuery
  • Get Command Line Help
  • Online C# Sandbox

Android Architecture Arduino ASP.NET AWS Azure Caching Constraints CSharp cybersecurity Design Patterns DotNet Excel git IIS IOT Linq log4net Master Chief MinIO mstest MVC Notes nunit oracle Partitioning PHP PowerShell Query Def Raspberry Pi REST S3 SQL SQL Server Stored Procedures Swagger systables tools Visual Basic Visual Studio WebApi windows WordPress Xml xunit

  • Home
  • Portfolio
  • Sample Page
../notes_to_myself