Subject | Re: [firebird-support] What the best big table or several small table |
---|---|
Author | Mark Rotteveel |
Post date | 2011-12-22T14:25:09Z |
On Thu, 22 Dec 2011 11:34:41 +0100, Thomas Steinmaurer
<ts@...> wrote:
then would the first clause be applied.
Mark
<ts@...> wrote:
>> select First 200 skip 0 .... from MyTable where c = XY and d = zw and AAre you sure? I would assume the ordering would be applied first, and only
>> > x and b< Z ... ORDERBY C, D
>>
>> what is the best :
>
> Take an eye on the execution plan, I/O stats in the monitoring table or
> via the trace api.
>
> Btw, you know that with the usage of FIRST above, you probably won't get
> your expected result?
>
> You probably want to do:
>
> select first 200 skip 0 ... from (
> select ... from order by c, d
> )
then would the first clause be applied.
Mark