'I have a table where customer ID are being duplicated because of their reactivation date. I need to pivot the reactivation date per CustomerID

I have a following table

enter image description here

I need to pivot the table and have it like the table below:

enter image description here

How can I have the unique customer ID in a column and all the reactivation dates pivoted like in the above picture?

sql


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source