Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.
declare @cols nvarchar(2000) select @cols = stuff(( select distinct top 100 percent '],[' + convert(varchar,t2.Calldate,105) from [Source table] as t2 order by '],[' + convert(varchar,t2.Calldate,105) for xml path('')), 1, 2, '') + ']' declare @query nvarchar(4000) set @query = 'select [Mobile no],' + @cols + 'from (select [Mobile no],convert(varchar,CallDate,105) CallDate,Disposition from [Source table]) t1 pivot (max(Disposition) for Calldate in (' + @cols + ')) as p' exec (@query)
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.