各位帮忙看一下,这段代码哪里有问题?
select vend_id,prod_price as cheaptest_item
from
(select vend_id,prod_price,
row_number() over(partition by vend_id order by prod_price) as ra
from Products) as Prod
where ra=1
order by cheaptest_item;
题目如下:
在牛客网上自测运行出来的结果和预期一致,但是保存提交一直不通过