Question : SQL syntax question -- exclude NULL record

I have a join below and it is running fine, but the results are not what I want.   It still captures the Case if there is even one case_progressnote record that isn't NULL.   What I want it to do is only capture the Case if all of the CaseTracking.case_progressnote records are NULL.

Ideas?  My query now is below.
Code Snippet:
1:
2:
3:
4:
5:
SELECT Cases.*, CaseTracking.* 
FROM Cases
INNER JOIN CaseTracking
on Cases.case_caseid = CaseTracking.case_caseid
WHERE CaseTracking.case_progressnote IS NULL

Answer : SQL syntax question -- exclude NULL record

SELECT Cases.*, CaseTracking.*
FROM Cases
INNER JOIN CaseTracking
on Cases.case_caseid = CaseTracking.case_caseid
WHERE NOT EXISTS (SELECT 1 FROM CaseTracking t WHERE t.Case_CaseId  = case_caseID and t.case_progressnote is not null )
Random Solutions  
 
programming4us programming4us