我需要使用日期的记录,还需要按日期过滤,还需要按日期排序的索引组,例如30日期从1开始,而31日期又从1开始
我尝试过
SELECT
ROW_NUMBER() OVER(partition by MYDate order by name DESC) AS ROW_NUM,
name,
MYDate
FROM T7010
ORDER BY MYDate DESC
;
SELECT
ROW_NUMBER() OVER(partition by MYDate order by name DESC) AS ROW_NUM,
name,
MYDate
FROM T7010
ORDER BY MYDate DESC
;
我在最后一行得到了不同的结果