3
I managed using UNPIVOT
SELECT ID_3_ETAPA
, PUBLICO
FROM MINHA_TABELA UNPIVOT ( PUBLICO FOR PUBLICO_COR IN ( PUBLICO1 AS '1'
, PUBLICO2 AS '2'
, PUBLICO3 AS '3'
, PUBLICO4 AS '4'))
Thus the public column was null on all lines.
– Rafael Weber
turn your comment into a response, so you can help other people.
– durtto