Table is:
+----+------+ | Id | Name | +----+------+ | 1 | aaa | | 1 | bbb | | 1 | ccc | | 1 | ffffd | | 1 | eee | +----+------+
In for xml path, if we define any value like [ for xml path('ENVLOPE') ] then these tags will be added with each row:
for xml path
[ for xml path('ENVLOPE') ]