Subject | Re: *** SPAM (5.7) *** Re: [firebird-support] sub select befor from statment |
---|---|
Author | Kjell Rilbe |
Post date | 2009-11-09T09:18:37Z |
Dimitry Sibiryakov wrote:
there were?? But let's wait with that until we know if that's what Piotr
wanted.
Piotr?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
>>But isn't it rather complicated to achieve the "first 1" semantics inYes. Noted. Wonder what Piotr actually wanted to achieve...
>>the OP's way using joins?
>
> Not so complicated if you note that original subselects don't have
> ORDER BY clause.
>>How would you suggest to do that? (Not that I can't see a solution, justRight, works since there are no order by in the subselects. But what if
>>not a very neat one...)
>
> Use aggregates. Because order is not set, MAX() will work not worse
> than MIN().
there were?? But let's wait with that until we know if that's what Piotr
wanted.
Piotr?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64