SELECT Employees.First_Name, Employees.Last_Name, VideoList.Video_Name, Detail.In_Date, Detail.Out_Date
FROM Employees INNER JOIN
Detail ON Employees.EmployeeID = Detail.EmployeeID INNER JOIN
VideoList ON Detail.VideoID = VideoList.VideoID
WHERE (Detail.In_Date IS NULL) and Out_date is more than 10 days from Now()
|