I have a string/text element that I need to split and insert into a table.
I have the text values of
123456|House,123567|Flat,789463|Car,635491|Lorry,
Where the number value (nvalue) needs to go in the first column, and the type eg. House needs to be in the second.
The values before the "," need to be on the same row. I would be looking for a table resembling
╔══════════╦═══════════╗
║ nvalue ║ Type ║
╠══════════╬═══════════╣
║ 123456 ║ House ║
║ 123567 ║ Flat ║
║ 789463 ║ Car ║
║ 635491 ║ Lorry ║
╚══════════╩═══════════╝
I'm trying to use the SQL code
INSERT INTO TABLE resultsTable
SELECT
nvalue({status}, ';')[255],
type({status}| ';')[255],
but i'm not having any luck.
{status} is a text field where the string is located.