Wat je wilt heet UNPIVOT
en zo gedaan:
select id,field,value from
#document_fields
unpivot
(
value
for field in (x,y,z)
) as u
order by id,field
Wat je wilt heet UNPIVOT
en zo gedaan:
select id,field,value from
#document_fields
unpivot
(
value
for field in (x,y,z)
) as u
order by id,field