I have ids and corresponding strings like this:
id place
234 USA_NY_Buffalo
I want to split up the place string into three strings each with its own column:
id Country State City
234 USA NY Buffalo
When I try splitting the string like this:
SELECT id, SPLIT(place,"_") FROM mytable
I get
id place
234 USA
234 NY
234 Buffalo
Is it possible to split the string by the first "_", then split the second string again by " _ " ?