I am not sure how can I achieve this output. In this case, my column is one but the internal value is multiple but I need to merge all and create one unique column header. column "NAME" has multiple values
Please go through with the below problem.
https://dba.stackexchange.com/questions/261454/ignoring-null-values-in-columns-pivot-and-unpivot