﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / XQUERY In sql server / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 18:01:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: XQUERY In sql server</title><link>http://www.sqlservercentral.com/Forums/Topic1419322-391-1.aspx</link><description>[quote][b]opc.three (2/13/2013)[/b][hr]I am not exactly sure what you're after but if you provide two sample XML documents and your expected results per your thoughts on the filtering and joining requirement you mentioned we can take it from there.[/quote]I have a scenario like, in the table few xml data types, example Location it is having country/State data in xml, all this information is related to user (Userid)&amp;lt;Location&amp;gt;&amp;lt;Country Name="India"&amp;gt;&amp;lt;State&amp;gt;HR&amp;lt;/State&amp;gt;&amp;lt;Country Name="UK"&amp;gt;&amp;lt;Country Name="USA"&amp;gt;&amp;lt;/Location&amp;gt;We need to query the above xml based on input xml looks same as above, and one extra parameter is @Operatior = And/Or if we send AND then the user Location xml must contain all the input countries if it is or then if is enough to any one country exist in user table of Location field (xml).Please provider your inputs on this.</description><pubDate>Wed, 13 Feb 2013 23:44:56 GMT</pubDate><dc:creator>SQL*</dc:creator></item><item><title>RE: XQUERY In sql server</title><link>http://www.sqlservercentral.com/Forums/Topic1419322-391-1.aspx</link><description>I am not exactly sure what you're after but if you provide two sample XML documents and your expected results per your thoughts on the filtering and joining requirement you mentioned we can take it from there.</description><pubDate>Wed, 13 Feb 2013 06:48:57 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>XQUERY In sql server</title><link>http://www.sqlservercentral.com/Forums/Topic1419322-391-1.aspx</link><description>Hi,I'm very new to XQuery's, here i need a situation to Join two different xml's and apply some filter conditions.From the below URL we can write the XQuery[url=http://www.datypic.com/books/xquery/chapter03.html][/url]But how can we use this in SQL Server.</description><pubDate>Wed, 13 Feb 2013 00:55:32 GMT</pubDate><dc:creator>SQL*</dc:creator></item></channel></rss>