Try this:
SELECT DISTINCT empid, empname,
(SELECT MIN(logdate) FROM table1 WHERE type='IN' AND
DATEADD(dd, 0, DATEDIFF(dd, 0, logdate)) = DATEADD(dd, 0, DATEDIFF(dd, 0, t1.logdate))),
(SELECT MAX(logdate) from table1 WHERE type='OUT' AND
DATEADD(dd, 0, DATEDIFF(dd, 0, logdate)) = DATEADD(dd, 0, DATEDIFF(dd, 0, t1.logdate)))
FROM table1 t1