Subject | Re: change condition i WHERE clause |
---|---|
Author | csswa |
Post date | 2002-08-07T08:52:56Z |
Aha, of course, SET! That first one will evaluate as false if non-
existent so no need for a null check here ...
Andrew Ferguson
-- Like fuzzy logic, but without the logic.
existent so no need for a null check here ...
> SELECT Code FROM Supro, PersonRegards,
> WHERE
> person.personid = 6789
> and
> (
> person.Posta1 is not null <----- bye, bye...
> and
> person.Postal1 BETWEEN Supro.P1 AND Supro.P2
> )
> or
> (
> person.Postal1 is null
> and
> person.Postal2 BETWEEN Supro.P1 AND Supro.P2
> )
Andrew Ferguson
-- Like fuzzy logic, but without the logic.