Hi, Appriciate help with creating a Pivot (first time with Pivot):Having two tables, one with rows containing names and the other contains Values and I need to display Rows Name as Column. I started with the following, but getting only first 3 rows. SELECT [First Name],[Last Name],[Email] FROM( select p.ID,p.Name, i.Value, p.Status from dbo.IdentityProperties i inner join dbo.Properties p on i.PropertyID = p.ID) DataTablePIVOT( MIN(Value) FOR Name IN ([First Name],[Last Name],[Email])) AS PivotTable
Results:ID Status First Name Last Name Email2 1 dddd NULL NULL3 1 NULL bbbbb NULL6 1 NULL NULL dddd@bbb.gg.il