Subject | [2] Re: [firebird-support] Sql query help |
---|---|
Author | Helen Borrie |
Post date | 2004-01-22T05:13:33Z |
At 05:06 AM 22/01/2004 +0000, you wrote:
Why not just
select col1, col2 from table1 where col1 in (const1, const2) order by col1
/hb
>create procedure...Just interested to know why you want to union this.
>begin
> for
> select col1, col2 from table1 where col1=<const> order by col1
> union
> select col1, col2 from table1 where col1=<const> order by col1
> do
> suspend;
>end
>
>If I remove the order by clause, it works fine. What I want, is that the
>total resulset should be sorted.
>Can someone help me out to figure this?
>
Why not just
select col1, col2 from table1 where col1 in (const1, const2) order by col1
/hb