我是 SQL 的初学者。我有一张这样的出席表:
ID--EID ---- PunchIn --------POut
1---101-----'2012-05-01 07:30: 00'-----'2012-05-01 10:00:00'
2---101-----'2012-05-01 13:30:00'-----'2012-05 -01 19:00:00'
3---102-----'2012-05-01 07:45:00'-----'2012-05-01 17:30:00'
4-- -103-----'2012-05-01 08:00:00'-----'2012-05-01 18:30:00'
如何编写会产生如下内容的查询:
ID--EID ---- PunchIn --------POut
1---101----- '2012-05-01 07:30: 00'-----'2012-05-01 19:00:00'
3---102-----'2012-05-01 07:45:00'-----'2012-05 -01 17:30:00'
4---103-----'2012-05-01 08:00:00'-----'2012-05-01 18:30:00'
谢谢你