select * from (
select a.*,row_number() over (partition by guid,item,corp order by item) rn
from corpitem a
) where rn=1
本文介绍了一种使用SQL进行数据筛选的方法,通过ROW_NUMBER()窗口函数结合子查询,实现了对特定条件下数据记录的有效提取。
select * from (
select a.*,row_number() over (partition by guid,item,corp order by item) rn
from corpitem a
) where rn=1
1350
2174
9万+

被折叠的 条评论
为什么被折叠?