Using SQL Server 2005.
I need help with a SQL Select statement. I have the following order numbers in a table and I want to select the lastest order number, which is the first 6 digits. The last 3 digits are the sequence numbers.
order_no
123456_00
123456_01
123456_02
987654_00
987654_01
385646_00
The result should return these order numbers:
order_no
123456_02
987654_01
385646_00
I need help with a SQL Select statement. I have the following order numbers in a table and I want to select the lastest order number, which is the first 6 digits. The last 3 digits are the sequence numbers.
order_no
123456_00
123456_01
123456_02
987654_00
987654_01
385646_00
The result should return these order numbers:
order_no
123456_02
987654_01
385646_00