I'm using DATEDIFF and IS NULL to find records missing data for a certain number of days, For example, here I'm trying to find students who haven't taken any classes for 1095 days (3 years), if they're a registered student they can't go more than 3 years without taking any classes. I think I'm doing this right, just making sure. As I'm learning, after the OUTER JOIN all columns return back and you filter columns you do/don't want in the WHERE.
SELECT DISTINCT
stu.campusID AS [Campus ID],
camp.name AS [School],
stu.studentID AS [Student ID],
stu.lName AS [Last Name],
stu.fName AS [First Name]
FROM
students stu
LEFT OUTER JOIN
coursesTaken cour
ON
cour.campusID = stu.campusID
AND
cour.studentID = stu.studentID
AND
DATEDIFF(D, cour.dateTaken, GETDATE()) >= 1095
INNER JOIN
campusNames camp
ON
camp.campusID = stu.campusID
WHERE
cour.dateTaken IS NULL