I need to normalize (in a technical way) table1 by splitting the column "error occured at" so that it was like in table2.
Is there is any DML function that will help me solve this? So that the rest of the information was transferred without using lead-lag function?
I tried to used string_to_array and transpose functions.
2
Answers
If you want to then delete rows where
error_occured_at
is of the older format, you can do:You can do it by combine
unnest
withstring_to_array
as follows :