Redshift. Convert comma delimited values into rows
A slight improvement over the existing answer is to use a second “numbers” table that enumerates all of the possible list lengths and then use a cross join to make the query more compact. Redshift does not have a straightforward method for creating a numbers table that I am aware of, but we can use … Read more