myatia
Programmer
- Nov 21, 2002
- 232
Hi, all,
In the query below, I'm trying to find the records in table A that don't have a match in table B (i.e., the ssid field is null).
When I remove "B.ssid IS NULL", null values appear for ssid in some of the results. However, when I add "B.ssid IS NULL", no results are returned. Does anyone know what gives?
Thanks!
Misty
In the query below, I'm trying to find the records in table A that don't have a match in table B (i.e., the ssid field is null).
Code:
SELECT A.code1, A.ses, A.yr, B.ssid ;
FROM A LEFT JOIN B ;
ON (A.id = B.id AND A.code1 = B.code1 AND A.yr = B.yr) ;
WHERE A.id = 74283 AND B.ssid IS NULL
When I remove "B.ssid IS NULL", null values appear for ssid in some of the results. However, when I add "B.ssid IS NULL", no results are returned. Does anyone know what gives?
Thanks!
Misty