📜  sql 查询行号分组依据 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:13.306000             🧑  作者: Mango

代码示例1
SELECT 
   Date,    
   ROW_NUMBER() OVER (PARTITION BY Date ORDER By Date, Cat) as ROW,
   Cat,
   Qty
FROM SOURCE