Subject | Re: How to compare two tables? |
---|---|
Author | Marco Menardi |
Post date | 2003-07-15T23:39:09Z |
--- In firebird-support@yahoogroups.com, Raymond Kennington
<progsol@c...> wrote:
(A.Salary = B.Salary)
will always fail when both are null :)
We need a stronger comparison operator, since null is used really
often with ambiguous meaning (something like '==').
regards
Marco Menardi
<progsol@c...> wrote:
> Raymond Kennington wrote:Thanks, but hope you know that
> Replace my last suggestion with:
>
> SELECT A.Employer_ID, A.Employer_ID, B.Salary, B.Salary
> FROM A FULL OUTER JOIN B
> ON A.Employer_ID = B.Employer_ID
> WHERE NOT ( (A.Employer_ID = B.Employer_ID)
> AND (A.Salary = B.Salary))
>
> Conditions for NULLs could be included, but I think they are
> irrelevant.
> --
(A.Salary = B.Salary)
will always fail when both are null :)
We need a stronger comparison operator, since null is used really
often with ambiguous meaning (something like '==').
regards
Marco Menardi