例如
Date | Name
1/1/13 | John
1/3/13 | Mary
1/5/13 | Joe
1/8/13 | Mary
1/9/13 | Bob
使用如下所示的存储过程在结果记录集中创建附加列“周范围”:
Date | Name | Week Range
1/1/13 | John | 12/31/2012 to 01/06/13
1/3/13 | Mary | 12/31/2012 to 01/06/13
1/5/13 | Joev | 12/31/2012 to 01/06/13
1/8/13 | Mary | 01/07/2013 to 01/13/13
1/9/13 | Bob | 01/07/2013 to 01/13/13
我需要这样做以便按周分组并显示在带有正确系列标签的图表中。