I really don't understand what the question is.
There are a million possibilities for your result sample:
select employee.emp_id,employee.Emp_Name,attendance.Time_In,attendance.Time_Out
from employee inner join attendance
on employee.emp_id = attendance.emp_id
and time_id = ''
and time_out = '' select attendance.emp_id,attendace.Emp_Name,attendance.Time_In,attendance.Time_Out
from employee left join attendance
on employee.emp_id = attendance.emp_id
where attendance.emp_id is null select top 0 * from attendance
union select emp_id,emp_name,'',''
from employee
Probably all the above will give a similar result to what you've provided under some conditions. The problem is that you have to specify under what you are trying to do.
adam_k
Practically a Posting Shark
803 posts since Jun 2011
Reputation Points: 256
Solved Threads: 149