I have data set that I am uploading in to two columns in a Redshift database table:
{A, 1|2|3|4}
Once loaded into a table I need to convert it to a set of rows and insert it into another table:
{A, 1},{A,2},{A,3},{A,4}
I am wondering if there is a specific function in Redshift that I can use or if there is a specific SQL plan anyone has written to perform this type of conversion. Any help is appreciated.
NOTES: The data in the second column can vary in range from 1 data point to 1000 data points.