07-30-2023 12:07 PM
Hello Incorta fans,
Given a data set as below:
the data source is attached: Group_split_Test.csv
It has a column named value
that contains a comma-separated data value grouped by a column namedKey
, And it is required to split this single data into multiple rows for each key value.
It should be like that:
Please help me to achieve it 🤷 😀.
07-31-2023 06:26 AM
Thanks Rasha,
I found another solution also for splitting data , by sql function ..here is it he function:
SELECT explode(split(col1, ",")) FROM table
try it it works with me.