Subject | Re: [firebird-support] Not work when subquery uses "select first nn"? |
---|---|
Author | Michael Weissenbacher |
Post date | 2006-09-19T20:55:07Z |
Hi,
Michael
> I just came across a query:No, see the relase notes. AFAIK it works in 2.0, but i'm not sure.
>
> SELECT ID FROM table WHERE ID IN
> (SELECT FIRST 2 ID FROM table)
>
> (ID is primary key. The table has 10 records)
>
> How many records does it return, 2 or 10? I got 10, which is the same as
>
> SELECT ID FROM table WHERE ID IN
> (SELECT ID FROM table)
>
> Does "first 2" work in subquery?
>
Michael