combine row data
hi,please help.how to combine 2 row data to become 1?
currently from the database table have time,employeeno,date fields.
for example this is the current database :
2008-05-10 00:00:00 M122 1899-12-30 06:24:40.000
2008-05-10 00:00:00 M122 1899-12-30 15:12:03.000
the result i wish to get is:
date empno time1 time2
2008-05-10 00:00:00 M122 1899-12-30 06:24:40.000 1899-12-30 5:12:03.000
this is my current code:
Code:
SELECT OvertimeDate, EmployeeNo,time
FROM Attendance
WHERE (EmployeeNo = 'm122')
order by overtimedate desc
thanks for help.