|
This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Select fld1, fld2, fld3, fld4
Case
when fld4='S' then 1
Else 2
End as Resort
>From ...
order by Resort, fld4
Sample:
CREATE TABLE ROB/KUZNITZ (FLD1 CHAR (1 ) NOT NULL WITH DEFAULT,
FLD2 CHAR (1 ) NOT NULL WITH DEFAULT, FLD3 CHAR (1 ) NOT NULL WITH
DEFAULT, FLD4 CHAR (1 ) NOT NULL WITH DEFAULT)
select fld1, fld2, fld3, fld4,
Case
When fld4='S' then 1
Else 2
End as ReSort
from Rob/kuznitz
order by resort, fld4
FLD1 FLD2 FLD3 FLD4 RESORT
A A A S 1
B B B C 2
C C C X 2
Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin
"Gary Kuznitz" <docfxit@theoffice.la>
Sent by: midrange-l-admin@midrange.com
09/13/2002 08:36 PM
Please respond to midrange-l
To: midrange-l@midrange.com
cc:
Fax to:
Subject: How to change the sort sequence in DDS
Hi,
I have a field that has a letter of the alphabet in it. I need to change
the sequence of that field so the letter "S" comes before the letter
"C" and "X". I don't remember how in DDS to specify a key
changing the sort sequence. It has been a lot of years since I have
had to do that.
TIA,
Gary Kuznitz
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.