I am importing a file data which cannot be edited from the source. I am trying to modify and extract the only needed information via Marketing Cloud SQL.
Below is the original file field data and the desired outcome.
Original Field | Desired Outcome Field 1 | Desired Outcome Field 2 |
---|---|---|
ACCESSORIES, Categories:Women, Type_en:Accessories, Brand:Example, NECKLACE, Collection:123 | Women | Accessories |
Categories:Men, SHORT SLEEVES, Type_en:T-shirts, CLOTHING, Collection, 132, Brand:Example2 | Men | T-shirts |
For Desired Outcome Field 1, I want to only get the value that begins with "Categories:" and end before the comma; similar for Desired Outcome Field 2, I want to only retrieve the value that begins with "Type_en:" and end before the comma.
Is it possible to do so within Marketing Cloud SQL?
Thanks a ton in advance!