[ale] [OT] Left Join SQL help...
greg at turnstep.com
greg at turnstep.com
Wed Apr 2 07:58:33 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Try using 'IS NULL' instead of '= NULL'.
Null is never equal to anything, not even itself:
SELECT CASE WHEN '' IS NULL THEN 1 ELSE 0 END;
SELECT CASE WHEN '' = NULL THEN 1 ELSE 0 END;
SELECT CASE WHEN NULL = NULL THEN 1 ELSE 0 END;
SELECT CASE WHEN NULL IS NULL THEN 1 ELSE 0 END;
Only the last will return a "1"
- --
Greg Sabino Mullane greg at turnstep.com
PGP Key: 0x14964AC8 200304020755
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iD8DBQE+iRo3vJuQZxSWSsgRAmOAAKC206bKaMNO2s9R0XWvxVPhnVRPjQCgmiCu
fEeoHdgAZWCjXBzN+s0IHNc=
=8BM4
-----END PGP SIGNATURE-----
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list