MattRichardsUK
Technical User
Is there a way of hard coding the order of colums in a pivot, depending the the value returned by the result set eg.
if result = 1 then
column order = 12345
else if result = 2 then
column order = 54321
if result = 1 then
column order = 12345
else if result = 2 then
column order = 54321