Site icon Database Tutorials

How To Concatenate Query Results in SQL Server(TSQL)

The other day I had to concatenate a query result. In this article, I’m going to tell you how to do this through an example.

Example:

Let’s create a table like below and add a few records into this table.

If we want to read the data in this table, we will see the result as follows.

Let’s concatenate this result set. You can perform this operation with the help of the following script.

Exit mobile version