Developer technologies | Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
How can I have the results from #1 to display all in one row like #2 -Thanks
Try
;with cte1 as (first query),
cte2 as (second query)
select cte1.*, cte2.* from cte1, cte2 -- cross join OK for single rows