Skip to content
Advertisement

Microsoft SQL Server , view transformation

Is it possible to transform the following view :

enter image description here

to this structure ?

enter image description here

I’ve tried with cross join but I have no idea how to make a condition based on column name.

Advertisement

Answer

You need APPLY instead of JOIN to be able to access outer columns

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement