Dear All,
I am getting following output. Now I want to convert Rows to Columns. I have mentioned in Desired Output.
Please help me how to convert rows to columns.
Output:
EmpNo EmpName HoursFromDate Time Range Short_Extra_Type Status NoOfHours
123 ABC 27 Nov 201 12:00 AM to 02:00 AM Short P 2
123 ABC 28 Nov 201 12:00 AM to 03:30 AM Extra A 5
Desired Output:
EmpNo EmpName ShortHoursFromDate ExtraHoursFromDate ShortTimeRange ExtraTimeRange
123 ABC 27 Nov 201 28 Nov 201 12:00 AM to 02:00 AM 12:00 AM to 03:30 AM
Short_Type Extra_Type ShortStatus ExtraStatus ShortNoOfHours ExtraNoOfHours
Short Extra P A 2 5
Thanks,
Harish Patil