Subject | Re: Is NOT IN or SMALLINT = 1 efficient? |
---|---|
Author | venussoftop |
Post date | 2012-02-25T12:21:22Z |
--- In firebird-support@yahoogroups.com, Mark Rotteveel <mark@...> wrote:
Thanks and regards
Bhavbhuti
> > One more question Mark. WillYes, you are right Mark. I had tried it, did not work as intended.
> > WHERE EXISTS (SELECT 1 FROM tableb b WHERE b.iPKID<> a.iTableBLinkID)
> >
> > be more efficient as the<> records will be far less over the time or does that interfere with using indices?
>
> That is a totally different select and will have an entirely different
> result than the one you desire.
>
> Mark
> --
> Mark Rotteveel
>
Thanks and regards
Bhavbhuti