Please help me with suitable ways to do this in Excel and SQL/Redshift.
So suppose I have a table like :

I want to decompose this column 5, to as many columns as unique values in that column and put corresponding value of column 6 in the rows. Basically I want only one row for unique [column1, column2, column3] pair. So, I want the result like :
