Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


left join xml documents

From: dacuna@------.---
To: NULL
Date: 6/1/2004 9:46:00 AM
I want to accomplish the equivalent t

select a.id, b.name from a left join b on a.id = b.i

I have two xml documents

<?xml version="1.0" standalone="yes"?><CodesFile><CatNumber><number>1</number><code>001</code></CatNumber><CatNumber><number>2</number><code>002</code></CatNumber></CodesFil

and

<?xml version="1.0" standalone="yes"?><NewDataSet><Table><Number_>1</Number_><category_name>Regular </category_name></Table><Table><Number_>2</Number_><category_name>Overtime</category_name></Table><Table></NewDataset

as you can see number from the first xml document is the same as number_ from the second one.  What I need, however, is the category_name from the second xml document where number_ and number are the same.  If these documents where tables it would be easy because I could write

select doc1.number, doc2.category_name, doc1.code from doc1 left join doc2 on doc1.number = doc1.number

I have read on xpath and xquery but I can't find an example that would give me the ability to do this

Any ideas

Thank

Danny


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent