0

Please I need help on how I can transform the data that appears in the attached photo. Maybe Unpivot SQL?

enter image description here

4

1 Answer 1

0
select id,customer,"Auxiliary" as Aux_type,auxiliary1,value1 
from input_table

union

select id,customer,"Auxiliary" as Aux_type,auxiliary2,value2 
from input_table

union

select id,customer,"Auxdyeing" as Aux_type,auxdyeing1,value3 
from input_table;

This should work I guess.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.