ลองดูครับ
select d.outdate,d.intime,d.outtime,k1.department as from_department,
k2.department as to_department,o.name as staff_name,d.*
from ptdepart d
left outer join kskdepartment k1 on k1.depcode = d.depcode
left outer join kskdepartment k2 on k2.depcode = d.outdepcode
left outer join opduser o on o.loginname = d.staff
where d.outdate = "2011-09-22" and d.vn = '540922052913'
order by d.intime