Subject | Re: [IB-Architect] Syntax for case insensitive sort |
---|---|
Author | Jim Starkey |
Post date | 2000-03-29T19:13:22Z |
At 08:43 PM 3/29/00 +0200, you wrote:
case insensitively. Your view returns everything in upper case.
And it can't use indexes for retrieval. And it can't be updated.
Other than that, there's not much wrong with it.
Jim Starkey
>From: "Steve Tendon" <steve@...>Why is this a problem?
>
>FWIW: Is everybody aware that "CASE" is standard SQL keyword (currently not
>supported by IB) used like a "switch" in C or "case" in Pascal.
>
>Uh, the point was to retrieve data preserving case but ordered
>OTOH, do we really need this? Can't we get what you want with a view and a
>UDF. With some shorthand here:
>
> create table t(f1, f2);
>
> create view ut(f1, f1) as select ucase(f1), ucase(f2) from t;
>
> select f1, f2 from ut order by f1
>
>Case solved. (Pun intended...)
>
case insensitively. Your view returns everything in upper case.
And it can't use indexes for retrieval. And it can't be updated.
Other than that, there's not much wrong with it.
Jim Starkey