[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

How to have xquery act like a SQL UNION?

Ghislain Fourny gfourny at inf.ethz.ch
Wed May 12 18:52:45 PDT 2010


  How to have xquery act like a SQL UNION?
Hi Andrew,

This XQuery Update approach actually does not alter any record - a copy-modify-return expression only modifies a copy and is hence a simple, not updating, expression (Paragraph 2.4.5 in the specification: " A transform expression is a simple expression because it does not modify the value of any existing nodes.")

Kind regards,
Ghislain


On May 12, 2010, at 5:49 PM, Andrew Webster wrote:

> Excellent.  I'll give this a try.  Much appreciated and I'll post updates as I make progress.
> 
> Ghislain's approach (using xquery update) wouldn't work as this is data of record and must not be altered.
> 
> It'll take me a few hours to get to test this, but in the meantime, thanks all for such a quick response.  You may have seen the request come from a couple of different email addresses - that was me wrestling with our corporate email "policy" - pah!
> 
> 
> Andrew Webster
> (GB Data Retention XQuery Development)








PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.