What is the difference between these?
The beginning part is as follows:
SELECT p.Name
, p.DOB
, ea.mailaddress
FROM Mall p
LEFT
JOIN mailaddresss ea
And differ both of these ending lines:
ON p.MallEntityID = ea.MallEntityID
WHERE ea.mailaddress LIKE 'NULL'
and
ON p.MallEntityID = ea.MallEntityID
AND ea.mailaddress LIKE 'NULL'
Sample data is as follows:
name mailaddress Mallentity
Bob 1
Joe "" 2
Dib NULL 3
Shay 8892 4