There a table column I need to math results when NULL exists:
SELECT *
FROM Mem LEFT JOIN Run on Run.fk_MID=Mem.MID
WHERE Run.PAID='NULL'
But how does this really go? And yes, this is embarassing to ask.
Records having NULL for this column will not appear, for example, when they exist and when checking on
Run.PAID<> 2
Run.PAID!=2
As another example:
SELECT *
FROM Mem, Run
WHERE fk_MID=MID AND PAID=2 AND MID!=366
Does return to right results, whereas this does not (returns no results):
SELECT *
FROM Mem, Run
WHERE fk_MID =MID AND PAID!=2 AND MID!=366
What could be happening?









Bookmarks