Skip to content
Advertisement

SQL Split Function and Ordering Issue?

I have the following Split function,

When I write,

This will give me,

I need to maintain the order.

Advertisement

Answer

A simpler function:

Sample usage:

Or to return orders from a table ordered by input:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement