The FOR XML clause is invalid in views, inline functions, derived tables, and subqueries when they contain a set operator. ...