Re: [GENERAL] ORDER BY options (how to order data as AAA, aaa, BBB, bbb, ... ZZZ, zzz)

2005-05-10 Thread Julian Legeny
Hello, that's what I was looking for. Thanks to all for advices, with best regards, Julian Legeny Tuesday, May 10, 2005, 12:14:38 PM, you wrote: RS> SELECT * FROM MY_TABLE ORDER BY lower(NAME), NAME RS> The second NAME is to ensure that AAA comes before aaa, otherwise the order

Re: [GENERAL] ORDER BY options (how to order data as AAA, aaa, BBB, bbb, ... ZZZ, zzz)

2005-05-10 Thread Dinesh Pandey
(how to order data as AAA, aaa, BBB, bbb, ... ZZZ, zzz)   Hello,      I have following problem:   I have table MY_TABLE with following records:      NAME ---    ccc    CCC    AAA    aaa    bbb    BBB   When I use default select that sort all data by NAME:       SELECT

Re: [GENERAL] ORDER BY options (how to order data as AAA, aaa, BBB, bbb, ... ZZZ, zzz)

2005-05-10 Thread Sim Zacks
if you order by upper(name) then it will mix them all together, so you won't have capital before lowercase, but it will put all the lowercase a before the uppercase b "Julian Legeny" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > >I have following problem: > > I have t

Re: [GENERAL] ORDER BY options (how to order data as AAA, aaa, BBB, bbb, ... ZZZ, zzz)

2005-05-10 Thread Russell Smith
On Tue, 10 May 2005 07:41 pm, Julian Legeny wrote: > Hello, > >I have following problem: > But I would like to sort all data as following: > >NAME > --- >AAA >aaa >BBB >bbb >CCC >ccc > > > How can I write sql command (or set up ORDER BY options) for sele

[GENERAL] ORDER BY options (how to order data as AAA, aaa, BBB, bbb, ... ZZZ, zzz)

2005-05-10 Thread Julian Legeny
Hello, I have following problem: I have table MY_TABLE with following records: NAME --- ccc CCC AAA aaa bbb BBB When I use default select that sort all data by NAME: SELECT * FROM MY_TABLE ORDER BY NAME; result is following: NAME --- AAA