
June 21st, 2012, 04:42 PM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
This should get you started:
Code:
select e1.employeeid,
e1.punchdtm,
e1.timezoneid,
e2.punchdtm,
e2.timezoneid
from a_table e1
join a_table e2
on e1.employeeid = e2.employeeid
and e1.timezoneid <> e2.timezoneid
Note that this won't work correctly if an employee has more than 2 timezones.
|