Viewing 5 posts - 1 through 5 (of 5 total)
Many thanks
Ram
December 5, 2012 at 5:08 am
I've finally sorted it out by writing the stored procedure as given below:
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @Counter...
July 8, 2012 at 10:10 pm
Dear All,
That's simply great! works charmly...
Many Many thanks for your valuable help!
Regards,
Ram
June 13, 2012 at 10:25 pm
Hi Craig,
Print @columns results:
[2013-01-05],[2013-01-12],[2013-01-19],[2013-01-26]
Print @convert results:
select * from (select * from UserProductivityMapping) wk.WeekStartDate
pivot(sum(PercentageProductivity) for wk.WeekStartDate
in ([2013-01-05],[2013-01-12],[2013-01-19],[2013-01-26])) as pivottable
Thanks and regards,
Ram
June 5, 2012 at 1:41 am
Hi Drew,
Please find the attached .xlsx file for your reference contains the table structure and also the expected output which may be useful for you to understand the requirement.
Many thanks,
Ram
June 4, 2012 at 10:18 pm
Viewing 5 posts - 1 through 5 (of 5 total)