目前我有一个查询根据所选的日期范围输出某种性能指标。例如,通过选择2017年1月1日至2017年1月6日,它为我提供了此期间所有工人的表现,汇总了这几天的分数。像这样:
Rank|Name|Score
1 |Tom |98
2 |Sam |87
3 |Sab |88
那就是我选择那个特定的日期范围。随着日期范围的变化,分数会不时变化。现在,它是如何工作的是1月7日,我对他一周前(1月1日 - 1月6日)的表现感兴趣,所以当前查询要求我手动选择日期范围,如果我想拥有每天的数据。理想情况下,我希望有一个庞大的数据列表,可以查看12月1日至3月1日17日的巨大日期范围内的表演。从这个范围的每一天,我获得1周前的分数。我希望能够通过选择此日期范围来生成此数据,因此它应该如下所示:
Rank|Name|Score|Date of Reference
1 |Tom |91 |1st Dec (Looks at data from 24th to 30th Nov)
2 |Sam |83 |1st Dec (Looks at data from 24th to 30th Nov)
3 |Sab |85 |1st Dec (Looks at data from 24th to 30th Nov)
1 |Tom |81 |2nd Dec (Looks at data from 25th Nov to 1st Dec)
2 |Sam |66 |2nd Dec (Looks at data from 25th Nov to 1st Dec)
3 |Sab |90 |2nd Dec (Looks at data from 25th Nov to 1st Dec)
1 |Tom |34 |3rd Dec (Looks at data from 26th Nov to 2nd Dec)
2 |Sam |50 |3rd Dec (Looks at data from 26th Nov to 2nd Dec)
3 |Sab |98 |3rd Dec (Looks at data from 26th Nov to 2nd Dec)
so on and so forth till 1st March
我现在的限制是我只能选择一周的日期范围。然后逐个下载这些文件,这非常耗时。