Forum Moderators: open
I hope this is an easy one, I don't quite know how to phrase the search right so I haven't found anything on the net--
I have a column called product_id-- it consists of a long number identifying the product, a dash, and a short number identifying the series (eg. 123456789-1 through 123456789-50).
I want to pull all products from this table, and order by that series number-- so instead of getting
123456789-1
123456789-10
123456789-11
123456789-12
...
123456789-19
123456789-2
I'd like to get
123456789-1
123456789-2
123456789-3
123456789-4
123456789-5
. . .
This is how the data is provided by the supplier, so I can't really rewrite these identifiers-- and since I don't always get them in order from the supplier, I can't just write them with a sequential ID column and order by that.
Any ideas?
Thanks!