Subject | Re: [firebird-support] Unbilled orders |
---|---|
Author | Magnus Titho |
Post date | 2005-06-15T09:55:11Z |
lysander_fb wrote:
from orders t1
left join bills t2 on t2.bill_reference = t1.orderno
where t2.bill_id is null
should work and is probably faster than your approach (afaik "count" is
a performance-killer), but you should test that yourself.
> I was trying a left outer join of both tables, and filtering for NULLselect t1.orderno, t1.ordertitle
> values on the right (bills) side. But I did not manage to get the
> syntax correct.
from orders t1
left join bills t2 on t2.bill_reference = t1.orderno
where t2.bill_id is null
should work and is probably faster than your approach (afaik "count" is
a performance-killer), but you should test that yourself.
> Thanks for ideas,Magnus
> André