Hi there - in Oracle SQL - does anyone know how to take a string and split it into multiple columns, where the number of distinct strings, and therefore output columns, is variable?
For example;
Name:
Matt Rundle
John Smith
Warren Hubert Jones
Martine Louise Jane Smith
would go to:
Matt|Rundle
John|Smith
Warren|Hubert|Jones
Martine|Louise|Jane|Smith
Where a pipe represents a new column.
Any help much appreciated!
Regards
Matt
For example;
Name:
Matt Rundle
John Smith
Warren Hubert Jones
Martine Louise Jane Smith
would go to:
Matt|Rundle
John|Smith
Warren|Hubert|Jones
Martine|Louise|Jane|Smith
Where a pipe represents a new column.
Any help much appreciated!
Regards
Matt