How to concatenate all results of a query
in SQL Server in order to return all information in a variable?
For example, considering a cliente
table with the following composition:
╔═══╦════════════╗
║ ║ Nome ║
╠═══╬════════════╣
║ 1 ║ José ║
║ 2 ║ Luis ║
║ 3 ║ Antônio ║
╚═══╩════════════╝
The desired result would be:
José, Luis, Antonio