Can somebody help me with my problem in sql... I have an attendancelog table where i have 3 columns Date, EmpID, IN/OUT, Date and Time. I would like to transfer this data in another column where it has Date, EmpID, IN Date and Time Column, and OUT Date and Time Column. I'm just new in sql i dont know how to implement it.
I am using sql server 2000. I have already a table with data in the first table. I need to transfer the data in the second table
For example:
1st Table Contain Logs
Column
Date EmpID IN/OUT Date and Time
10/11/2007 20 IN 10/11/2007 11:00 AM
10/11/2007 1 IN 10/11/2007 11:10 AM
10/11/2007 1 OUT 10/11/2007 10:00 PM
10/12/2007 20 OUT 10/12/2007 6:00 AM
I would like to transfer the IN and OUT of the the same EmpID to a single row
2nd Table
Date EmpID DateTime IN DateTime OUT
10/11/2007 20 10/11/2007 11:00 AM 10/12/2007 6:00 AM
10/11/2007 1 10/11/2007 11:10 AM 10/11/2007 10:00 PM
I am using sql server 2000. I have already a table with data in the first table. I need to transfer the data in the second table
For example:
1st Table Contain Logs
Column
Date EmpID IN/OUT Date and Time
10/11/2007 20 IN 10/11/2007 11:00 AM
10/11/2007 1 IN 10/11/2007 11:10 AM
10/11/2007 1 OUT 10/11/2007 10:00 PM
10/12/2007 20 OUT 10/12/2007 6:00 AM
I would like to transfer the IN and OUT of the the same EmpID to a single row
2nd Table
Date EmpID DateTime IN DateTime OUT
10/11/2007 20 10/11/2007 11:00 AM 10/12/2007 6:00 AM
10/11/2007 1 10/11/2007 11:10 AM 10/11/2007 10:00 PM
Comment