I have a query with a simple result set of 2 rows.
Query - select ColA from TableA
ColA
1
2
I want the result set to actually be:
12
My query:
SELECT CAST((SELECT CAST(ColA AS NVARCHAR(3))
FROM dbo.TableA WITH(NOLOCK)
FOR XML PATH ('')) AS NVARCHAR(MAX))
Is this is easiest way to generate the specific result set?
Thanks in advance.