I've looked for an answer here to no avail; wondering if this problem is best suited outside SQL environment but thought I'd see how it could be solved.
I'm trying to look at web journeys and as a result need my data to be in the following format:
ID DATE EVENT
1 01/01/20 "Landing Page"
1 01/01/20 "purchase page"
2...etc
At present the data is in the following format:
ID DATE EVENT
1 01/01/20 "Landing page","purchase page"
2... etc
I essentially want to break out the event field by comma and create a new row for each comma separated event with all other fields duplicated. My SQL isn't great, have tried numerous temp tables, unions and split_parts to break out the field to some success but cannot get it into its own row.