Subject | RE: [firebird-support] Re: Possible to write this in a way that indices will be used |
---|---|
Author | Maya Opperman |
Post date | 2008-05-15T17:54:58Z |
Rick Debay Wrote:>
Any other suggestions for ((D.SuplCde = :ISupplierCode) or
(:ISupplierCode is null))
to be able to use indices?
>> if D.SuplCde is 'ABC' and ISupplierCode is NULL, result will beTRUE??
>Wrong. Since one has a value and the other is NULL, they are DISTINCT.OK, so Sasha is right, DISTINCT is unfortunately not going to work.
>The NOT would flip that to false.
Any other suggestions for ((D.SuplCde = :ISupplierCode) or
(:ISupplierCode is null))
to be able to use indices?