|
Home > Online Product Documentation > Table of Contents > Obtaining a Union Obtaining a Union
Specify the
The result set can contain zero or more of each element that the
The next query finds all books and all authors in the current context:
The next query returns the first names, last names, and degrees of authors of books or magazines in the current context:
A union can appear only as the first step in a location path expression. Consequently, the following is incorrect because there is a union specification that is not in the first step of a location path expression.
The following query finds all books for which the author's first name is Bob and all magazines with prices less than 10 dollars:
|
XML Schema Quality Checker
Use IBM's alphaWorks XML Schema Quality Checker to check the quality and style of your XML schema documents. Fully integrated with the Stylus Studio XML Schema Editor and XML validator.
EDI to XML Mapping
A tutorial on how to transform EDI files into XML using Stylus Studio's Convert to XML tool. Subsequent post-processing of the converted EDI data is done through XQuery or XSLT, modeling a real world XML data integration application.
Create XML Views of Relational Data Using DataDirect XQuery
DataDirect XQuery simplifies creating, querying and updating of relational databases as XML including Microsoft SQL Server, Oracle, IBM DB2, Sybase and Informix.
Learn XQuery
Stylus Studio offers three infomative XQuery demonstration videos illustrating Stylus Studio's XQuery Editor, Mapper, Debugger and other advanced functionality. Watch them today!