I have a problem getting out of the fulcrum. I need this in my desired form for coalescence tables.
My result:
us_id Phone Mail 1 555121313 NULL 1 NULL LoginOne@mail.com 2 14124124 NULL 2 NULL LoginTwo@mail.com
Required Conclusion:
us_id Phone Mail 1 555121313 LoginOne@mail.com 2 14124124 LoginTwo@mail.com
Script for the test:
create table
My code for dynamic pivot:
DECLARE @columns NVARCHAR(MAX), @sql NVARCHAR(MAX); SET @columns = N''; SELECT @columns += N',' + QUOTENAME(at_name) FROM ( SELECT at_name FROM
Voonart
source share