Subject | Re: order by Upper(1) |
---|---|
Author | Adam |
Post date | 2005-11-20T03:24:17Z |
> 1. select lname, fname from membersHans,
> order by upper(lname) ..... works
>
> 2. select lname, fname from members
> order by 1 ..... works
I am not sure about this. I mean it depends on how you define "works"
I suppose. It "works" in the sense that it returns the results, but
these two queries will not necessarily use result in the same ordering.
> 3. select lname, fname from membersThis could be a bug, but it is also ambiguous. Does it mean 1 as in
> order by upper(1) ..... doesn't work
>
the first record, or does it mean some particular constant value.
Upper(1) = 1 after all, so my guess is you are receiving the records
in the order they are stored.
For the moment you will have to either quote the field (as in 1) or
use the upper in the select.
4. select upper(lname), fname from members
order by 1
Adam