Hello, I'm having trouble turning rows into columns in SQL Server
.
I could not write anything yet ... I thought of PIVOT
, but since it's not always the same amount of columns, I can not think of how to do ...
I have these 2 tables:
Expectedresult:
It's for a report.