> Still no changes.  This looks to me as a riddle.

> select orders.*
> from
>   (select partid from partners where partners.country = ‘Spain’) T
>   JOIN orders ON orders.partid = T.partid

Do you have an index on partners.country?

If not, how do you expect the system to optimize the search?  

The engine would need to perform a scan of the partners table...



Sean
  • [firebird-supp... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
    • Re: [fire... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
    • Re: [fire... Svein Erling Tysvær setys...@gmail.com [firebird-support]
      • Re: [... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
        • R... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
          • ... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
            • ... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
      • Re: [... ehmmm.fireb...@seznam.cz [firebird-support]
        • [... Virgo Pärna virgo.pa...@mail.ee [firebird-support]
    • Re: [fire... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]
      • Re: [... Louis Kleiman lklei...@sstms.com [firebird-support]
    • Re: [fire... Ann Harrison aharri...@ibphoenix.com [firebird-support]
      • Re: [... Helen Borrie hele...@iinet.net.au [firebird-support]
        • R... Ann Harrison aharri...@ibphoenix.com [firebird-support]
      • Re: [... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
        • R... monteropetronila...@yahoo.com [firebird-support]
        • R... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]

Reply via email to