I have column which stores multiple Email with semicolon separated as below:
| Email |
| -----------------------------|
| [email protected]; [email protected] |
| [email protected]; [email protected]; [email protected] |
| [email protected]; [email protected] |
I am looking to split email using delimiter semicolon and store them in different column.
I have tried a few string commands but it doesn't provide me an appropriate result
REVERSE(PARSENAME(REPLACE(REVERSE(Email), ';', '.'), 1)) AS [Email1],
REVERSE(PARSENAME(REPLACE(REVERSE(Email), ';', '.'), 2)) AS [Email2],
REVERSE(PARSENAME(REPLACE(REVERSE(Email), ';', '.'), 3)) AS [Email3]
Any leads on this will be appreciated.
If there is any better solution, please feel free to share it here.
Thanks in advance!