Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
SELECT t .* FROM (SELECT Employees.EmployeeID, Employees.Last_name, Employees.First_name, VideoList.video_name, Detail.out_date, Detail.in_date, Role, COUNT(*) OVER (Partition BY Employees.EmployeeId) AS CountNotCheckedIn 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 Detail.Out_Date IS NOT NULL) t WHERE t .CountNotCheckedIn = 2 AND Role <> '2'
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.