Redian新闻
>
How to write SQL to return the attached results
avatar
s*e
2
I just started learning SQL. I could not figure out how to get the results
as shown in the attached picture. Can anyone give me some hints?
Thanks in advance
avatar
c*e
3
select *
from your_table
qualify row_number() over (partition by column1 order by column3 desc) = 1 ;

【在 s******e 的大作中提到】
: I just started learning SQL. I could not figure out how to get the results
: as shown in the attached picture. Can anyone give me some hints?
: Thanks in advance

avatar
B*g
4
我早就说这个应该置底,为sql问题先看partition by

;
results

【在 c*******e 的大作中提到】
: select *
: from your_table
: qualify row_number() over (partition by column1 order by column3 desc) = 1 ;

avatar
j*n
5
re

【在 B*****g 的大作中提到】
: 我早就说这个应该置底,为sql问题先看partition by
:
: ;
: results

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。