Try
;with cte as (select RTRIM(LastName) + ', ' +
RTRIM(FirstName) + ' - ' + RIGHT('0' + cast(datepart(day, BDate) as varchar(2)),2) as FullNameDt, left(datename(month, BDate),3) as [Mnth],
ROW_NUMBER() over (partition by datepart(month, BDate) order by datepart(day, BDate)) as Rn from #temp) select ISNULL([Jan],'') as [Jan], ISNULL([Feb],'') as [Feb], ISNULL([Mar],'') as [Mar], ISNULL([Apr],'') as Apr, ISNULL([May],'') as [May], ISNULL([Jun],'') as Jun, [Jul], [Aug], [Sep], [Oct], [Nov], [Dec] from cte PIVOT (max(FullNameDt) FOR Mnth IN ([Jan],[Feb],[Mar],[Apr],[May],[Jun],[Jul],[Aug],[Sep],[Oct],[Nov],[Dec])) pvt
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles