Subject | Re: [firebird-support] SQL NOT IN |
---|---|
Author | Dmitry Yemanov |
Post date | 2005-11-23T06:03:15Z |
"Dion" <27824912424@...> wrote:
in all IB/FB versions. Try this to make sure you're affected:
select fetchedhrs.forkliftcell
from fetchedhrs
where fetchedhrs.forkliftcell not in
(select forklift.forkliftcell || '' from forklift)
and compare the results with your original query.
P.S. This bug is fixed in v2.0.
Dmitry
>sql
> select fetchedhrs.forkliftcell
> from fetchedhrs
> where fetchedhrs.forkliftcell not in
> (select forklift.forkliftcell from forklift)
>
> I want all forklifts for which I have records in the FetchedHrs table but
> no corresponding record in the Forklift table. I thought that the above
> would work, but I get an empty resultant dataset. I am certain that thereis
> at least one record in the FetchedHrs table which is not in the ForkliftDo you have an index on "forklift.forkliftcell"? If so, there's a known bug
> table.
>
> Is there an issue with this in FB v1.5.2.4731?
in all IB/FB versions. Try this to make sure you're affected:
select fetchedhrs.forkliftcell
from fetchedhrs
where fetchedhrs.forkliftcell not in
(select forklift.forkliftcell || '' from forklift)
and compare the results with your original query.
P.S. This bug is fixed in v2.0.
Dmitry