Learn about the benefits of nested FOR XML queries by viewing an example that compares a single-level FOR XML query to a nested FOR XML query.
View an example of using nested FOR XML queries to shape the resulting XML. The two inner SELECT statements construct two <Price> elements, each with a PriceType attribute and XML that returns the ...