求大神看看这句SQL语句哪里错了?

2025-04-24 18:07:06
推荐回答(1个)
回答1:

select * from
(
select FUNCTIONAL_LOCATION,HDR_END_DATE,row_number()
over(partition by FUNCTIONAL_LOCATION order by HDR_END_DATE ) mm
from T_EODB_CONTRACT_ITM_DEL) as t
where t.mm=1;

试试这样行不行