I wrote

> > select o.*
> >      from orders o
> >             inner join partners p
> >
> * where p.partid = o.opartid >             and p.country = 'Spain*';
>
> Helen suggests the more correct:


>  select o.*
>       from orders o
>              inner join partners p
>      * on p.partid = o.opartid*
>      * where *p.country = 'Spain';
>

which is more correct. But the firebird optimizer is smart enough to find
join
terms, even when misplaced, so the two generate the same plans.  Again,
with more complex queries, results may differ.

Cheers,

Ann
  • Re: [firebird-... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
  • Re: [firebird-... Svein Erling Tysvær setys...@gmail.com [firebird-support]
    • Re: [fire... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
      • RE: [... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
        • R... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
          • ... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
  • Re: [firebird-... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]
    • Re: [fire... Louis Kleiman lklei...@sstms.com [firebird-support]
  • Re: [firebird-... Ann Harrison aharri...@ibphoenix.com [firebird-support]
    • Re: [fire... Helen Borrie hele...@iinet.net.au [firebird-support]
      • Re: [... Ann Harrison aharri...@ibphoenix.com [firebird-support]
    • Re: [fire... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
      • Re: [... monteropetronila...@yahoo.com [firebird-support]
      • Re: [... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]
        • R... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
          • ... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
            • ... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
              • ... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
  • Re: Re: [fireb... liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
    • Re: [fire... 'Djordje Radovanovic' softsis...@sbb.rs [firebird-support]
      • Re: [... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]

Reply via email to