logictrap
04-30-2008, 09:13 PM
I have a series of records that contain a date field and a sequence field.
I want to be able to select the records and sort them with the most recent date first unless there a value other than 0 in the sequence field.
The default value in the sequence field is 0.
Restated the sort should be:
- Sort in ascending order by sequence number if sequence number is greater than zero
- Then sort by date in descending order
I'm really hoping there is a single select statement that can perform this.
Thanks
I want to be able to select the records and sort them with the most recent date first unless there a value other than 0 in the sequence field.
The default value in the sequence field is 0.
Restated the sort should be:
- Sort in ascending order by sequence number if sequence number is greater than zero
- Then sort by date in descending order
I'm really hoping there is a single select statement that can perform this.
Thanks