SQL Server 2008 adds support for the 'let' clause in FLWOR expressions. The for and let clauses have a similar purpose, to bind content (tuples) to variables. Either one can begin a FLWOR expression: declare @x xml = ''; select @x.query(' for $i in (1,2,3) Read More...