select date,
max(case when ID =1 then [Y/N] ELSE NULL END) AS [1],
max(case when ID =2 then [Y/N] ELSE NULL END) AS [2],
max(case when ID =3 then [Y/N] ELSE NULL END) AS [3]
from table
group by date
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/