Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: empty string or null
Frank van Bortel schrieb am 29.03.2007 in
<euh3bm$rhd$1_at_news4.zwoll1.ov.home.nl>:
> Andreas Mosmann schreef: > [snip]
I know about VARCHAR2, so I would write the correct query ;)
SELECT * FROM ADDRESSES A
LEFT JOIN JOBS J ON
(A.FIRSTNAME=B.FIRSTNAME
or A.FIRSTNAME is NULL and B.FIRSTNAME is NULL)
and
(A.MIDDLENAME=B.MIDDLENAME
or A.MIDDLENAME is NULL and B.MIDDLENAME is NULL)
and
(A.FIRSTNAME=B.FAMILIYNAME
or A.FAMILIYNAME is NULL and B.FAMILIYNAME is NULL)
and NULL is NULL
and 1=1
and 2=2
..
and 'A'='A'
..
are you interested in knowing which job has Mr. ? (long time ago he had to call himself "nobody", but now "" is a correct name)
best regards
Andreas <no middlename> Mosmann
-- wenn email, dann AndreasMosmann <bei> web <punkt> deReceived on Fri Mar 30 2007 - 02:25:28 CDT