I have a column named "LIST" in a table with strings like the following:
151231-1002-02-1001
151231-1001-02-1001
151231-1002-02-1002
151231-1003-02-1001
etc....
What I'd like to do is include an ORDER BY statement that splits the
string, so that the order would be by the second set of four numbers
(i.e. between the first and second - marks), followed by the third set
of two numbers, and then by the last set of four numbers.
How would I do something like this?
--
Sugapablo - russpghREMOVE@s targate.net
http://www.sugapablo.com | ICQ: 902845
151231-1002-02-1001
151231-1001-02-1001
151231-1002-02-1002
151231-1003-02-1001
etc....
What I'd like to do is include an ORDER BY statement that splits the
string, so that the order would be by the second set of four numbers
(i.e. between the first and second - marks), followed by the third set
of two numbers, and then by the last set of four numbers.
How would I do something like this?
--
Sugapablo - russpghREMOVE@s targate.net
http://www.sugapablo.com | ICQ: 902845
Comment