Pivot without using aggregate function in MS SQL