我如何每 2 小时计数和分组?
我有一张这样的桌子:
Id TheTime
-- -------
1 07/07/2012 08:49:02
2 07/07/2012 09:36:39
3 07/07/2012 10:36:39
4 07/07/2012 12:36:39
5 07/07/2012 13:36:39
我怎样才能转换成:
TheTime_08_10 TheTime_10_12 TheTime_12_14 etc.. until TheTime_22_00
------------- ------------- ------------ -------------
2 1 2
提前谢谢你,史蒂夫