December 2002
Intermediate to advanced
1560 pages
40h 44m
English
For greater control over the names and structure of your XML, use AUTO mode. AUTO mode facilitates the naming of XML elements with something other than “row.” Element names correspond to the name or alias of the selected tables.
AUTO mode creates a structured view of data that mirrors the relationships of selected tables by nesting XML elements selected from multiple tables. A nested or child element is one that is enclosed by another element, known as its parent element. Listing 41.3 shows an example of element nesting.
SELECT Customer.CustomerID CID, CompanyName CO, ContactName CN, OrderID FROM Customers Customer JOIN Orders ... |
Read now
Unlock full access