Subject | AW: [firebird-support] Optimization Question |
---|---|
Author | Thomas von Stetten |
Post date | 2004-02-19T16:05:07Z |
Hi,
part
else try "order by Spread_ID, Action_Time" (that's like your SPREADID_INDEX)
HTH
Thomas
> select first 1 SpreadAction_ID from SpreadActionTableif you only want to know, if there is any record, then drop the order by
> where Spread_ID = 9007 AND ( Status IS NULL OR Status != 2 )
> AND Action_Time >= 1073030400
> AND Action_Time <= 1075535999
> Order By Action_Time;
part
else try "order by Spread_ID, Action_Time" (that's like your SPREADID_INDEX)
HTH
Thomas