DECLARE @attendance_date datetime set @attendance_date = '2014-02-20'
select TM.TM_UserID, TM.FullName, @attendance_date from TM_User TM where TM.is_active=1 and TM.TM_UserID not in (SELECT EM2.EmployeeID from Employee_Attendance EM2 WHERE EM2.CheckTime BETWEEN '20-02-2014' AND '21-02-2014')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)