Click here to Skip to main content
15,885,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the Data in below format :
Emp-ID  Date    TimeIn  TimeOut
E001    1/1/2013    9:30    6:30
E001    1/2/2013    9:30    6:30
E001    1/3/2013    9:30    6:30
E001    1/4/2013    9:30    6:30
E001    1/5/2013    9:30    6:30
E001    1/6/2013    9:30    6:30
E001    1/7/2013    9:30    6:30
E001    1/8/2013    9:30    6:30
E001    1/9/2013    9:30    6:30
E001    1/10/2013   9:30    6:30
E001    1/11/2013   9:30    6:30
E001    1/12/2013   9:30    6:30
E001    1/13/2013   9:30    6:30
E001    1/14/2013   9:30    6:30
E001    1/15/2013   9:30    6:30

Required Reprot in below fromat:
Emp-ID  Date     1/1/2013     1/2/2013     1/3/2013.......
E001    TimeIn      9:30        9:30         9:30.......
E001    TimeOut     6:30        6:30         6:30.......

Please help me out i am stuck if you have any reffrence file send me ..
Posted
Updated 4-Apr-13 6:56am
v3
Comments
[no name] 4-Apr-13 13:02pm    
You need to query your data using a PIVOT.
Prathap Gangireddy 4-Apr-13 14:20pm    
There are two options to get the above result

1) using pivot write a query in SQL
2) You can use cross-tab in crystal reports.

Let me know if needed any help with query using Pivot.
Jaqsalahuddin 8-Apr-13 2:08am    
Thanks every 1 my problem has been resolved, i got the solution what i want .. :)

Better use Cross Tab and set the values overthere for the horizantal format.
 
Share this answer
 
Use Crosstab report
Columns = Date   

rows    = EmpId

Summary fields = TimeIn     
                 TimeOut

Happy Coding!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900