Query from 2 XML data sources
- From: Paolo.sembung@xxxxxxxxx
- Date: Tue, 15 Jan 2008 22:52:49 -0800 (PST)
Hi,
Suppose I have to XML documents. The first one contains a list of
authors and the second one contains a list of books. For example,
author.xml
--------------------------
<authors>
<author @id="1">
<name>Tom</name>
<tel>001-909-1129</tel>
</author>
<author @id="2">
<name>Chris</name>
<tel>001-871-1341</tel>
</author>
<author @id="3">
<name>Jack</name>
<tel>001-452-8721</tel>
</author>
</authors>
book.xml
--------------------------
<catalog>
<book>
<title>SQL Server for Dummies</title>
<author @id="1">Tom</author>
</book>
<book>
<title>XQuery for Dummies</title>
<author @id="2">Chris</author>
</book>
<book>
<title>It's All About XML</title>
<author @id="3">Jack</author>
</book>
</catalog>
Suppose I store "author.xml" as xml data type in the AUTHOR table and
"book.xml" as xml data type in the BOOK table. I would like to get the
information of authors who have written a book with title containing
"XQuery".
How can I write XQuery in SQL Server 2005 ?
Thanks
.
- Follow-Ups:
- Re: Query from 2 XML data sources
- From: Mike C#
- Re: Query from 2 XML data sources
- From: Marc Gravell
- Re: Query from 2 XML data sources
- Prev by Date: XML, XSL, CSS attribute issue
- Next by Date: Re: XML, XSL, CSS attribute issue
- Previous by thread: XML, XSL, CSS attribute issue
- Next by thread: Re: Query from 2 XML data sources
- Index(es):
Relevant Pages
|
Loading