select *
from (
select soft.NETMODEL,
soft.softname,
soft.softid,
soft.SOFTVER,
soft.createdate,
row_number() over(partition by softname order by softId desc) indexId
from ZTEspt_Soft_File soft
where soft.softkind = 7)
where indexId = 1;
要解决的问题

已解决的效果

本文介绍了一种使用SQL进行复杂查询的方法,通过子查询和窗口函数row_number()实现了从特定类型的数据集中选择最新版本软件的目的。
1万+

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



