繁体   English   中英

当我有 3 个其他对应列时,如何获得特定对应列的最大值?

[英]How do I get max value for a specific corresponding column when I have 3 other corresponding columns?

我有 4 列: URL | 关键词 | 数量(关键字)| Position(关键字)

有没有办法可以拉出 URL 的最大(音量)? 我还想提取关键字和 position 列,但是每个 URL 有多个值,所以当我添加其他列时,我得到的数据比我想要的多。

Not clear on the question,if you mean that you need maximum volume for a given url while retaining the other columns,here is the code: Select url,keywords,position,(select max(volume) from your_table t1 where t1.url= t.url) 来自 your_table t

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM