由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - How to write SQL to return the attached results
相关主题
如何在oracle8i中得到视图和表的定义?请问T-SQL中Group By之后怎么找到特定的record
SQL问题请教比较两个table,找出相同和不同的records
纪录查找问题请教一个有关SQL concat的问题
oracle中如何查询已建立的表结构a problem, thank you
Help about a SQL statement问一个 SQL combine records问题
请教一个SQL QuerySQL Server - delcare variable dynamically
how to display all exsiting indexes and their statisticsSQL 请教
To get the 2nd, 3rd, 4th largest value一个sql问题:怎样实现 (((a1*10)+a2)*10+a3)*10 ... (转载)
相关话题的讨论汇总
话题: sql话题: results话题: attached话题: write话题: return
进入Database版参与讨论
1 (共1页)
s******e
发帖数: 841
1
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
c*******e
发帖数: 8624
2
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

B*****g
发帖数: 34098
3
我早就说这个应该置底,为sql问题先看partition by

;
results

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

j*****n
发帖数: 1781
4
re

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

1 (共1页)
进入Database版参与讨论
相关主题
一个sql问题:怎样实现 (((a1*10)+a2)*10+a3)*10 ... (转载)Help about a SQL statement
T-SQL Update Statement Question请教一个SQL Query
猪一样的队友how to display all exsiting indexes and their statistics
请教大牛一道有趣的SQL题To get the 2nd, 3rd, 4th largest value
如何在oracle8i中得到视图和表的定义?请问T-SQL中Group By之后怎么找到特定的record
SQL问题请教比较两个table,找出相同和不同的records
纪录查找问题请教一个有关SQL concat的问题
oracle中如何查询已建立的表结构a problem, thank you
相关话题的讨论汇总
话题: sql话题: results话题: attached话题: write话题: return