Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32096

Pivot Table in SQL

$
0
0
Hi,
please view the sample data: 

EmpCodeAtt_DateDuration_HRDuration_MnRemarksNoOfLeaves
75010/01/2012925Null0
75110/01/2012850Late0
75210/01/201298A0
75010/02/2012102Null0
75210/02/201280Late0
75310/02/2012NullNullNull1

I want to have this data in following

10/01/201210/02/2013
750750
9:2510:02
NullNull
00
751752
8:508:00
LateLate
00
752753
9:08Null
ANull
0Null

I am trying to go with Pivot, but not able to get the perfect output. I will get the date range and EmpCode at runtime(from user).

Viewing all articles
Browse latest Browse all 32096

Trending Articles