由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - How to write this query in Oracle?
相关主题
Pivot table SOS (转载)[合集] WorldQuant phone interview
SQL combine two columns from two different tables no shared (转载)[合集] 继续作贡献,一道积分题。
question about MATLAB matrix squaring EXCEL VBA in real world
compare two large tables SQL (转载)A hedge fund interview questions (CS)
SQL find distinct values in large table (转载)C++: how to dynamically allocate a 2-D array
SQL copy a table into a new table and add a new column (转载)Excel VBA help!!!
SQL fast search in a 10 million records table (转载)[合集] Interview question for Quant to share-1, please discuss and
请教一道面试题啊!关于SQL的!vb/excel 问题, 急!
相关话题的讨论汇总
话题: oracle话题: query话题: write话题: max话题: table
进入Quant版参与讨论
1 (共1页)
d*******n
发帖数: 524
1
【 以下文字转载自 Database 讨论区 】
发信人: dArtagnan (达达尼昂), 信区: Database
标 题: How to write this query in Oracle?
发信站: BBS 未名空间站 (Tue Dec 8 10:42:40 2009, 美东)
We have a table (T_1) with e.g. 4 columns
T_1:
x y x z
1 2 3 4
3 6 1 -1
6 3 2 0
5 3 2 -10
I need a query to find out in each row which column has the max absolute value.
That is, I need to get the following table as output:
max_col
z
y
x
z
How to write this query in Oracle?
Thanks
j******n
发帖数: 271
2
cat << xxxx | mail -s "help" E*****[email protected]
We have a table (T_1) with e.g. 4 columns
T_1:
x y x z
1 2 3 4
3 6 1 -1
6 3 2 0
5 3 2 -10
I need a query to find out in each row which column has the max absolute
value.
That is, I need to get the following table as output:
max_col
z
y
x
z
How to write this query in Oracle?
Thanks
xxxx
|

【在 d*******n 的大作中提到】
: 【 以下文字转载自 Database 讨论区 】
: 发信人: dArtagnan (达达尼昂), 信区: Database
: 标 题: How to write this query in Oracle?
: 发信站: BBS 未名空间站 (Tue Dec 8 10:42:40 2009, 美东)
: We have a table (T_1) with e.g. 4 columns
: T_1:
: x y x z
: 1 2 3 4
: 3 6 1 -1
: 6 3 2 0

d*******n
发帖数: 524
3
?

【在 j******n 的大作中提到】
: cat << xxxx | mail -s "help" E*****[email protected]
: We have a table (T_1) with e.g. 4 columns
: T_1:
: x y x z
: 1 2 3 4
: 3 6 1 -1
: 6 3 2 0
: 5 3 2 -10
: I need a query to find out in each row which column has the max absolute
: value.

1 (共1页)
进入Quant版参与讨论
相关主题
vb/excel 问题, 急!SQL find distinct values in large table (转载)
另一道陈题SQL copy a table into a new table and add a new column (转载)
问一个线性回归的问题,其实就是一个代数问题SQL fast search in a 10 million records table (转载)
请问个矩阵的问题请教一道面试题啊!关于SQL的!
Pivot table SOS (转载)[合集] WorldQuant phone interview
SQL combine two columns from two different tables no shared (转载)[合集] 继续作贡献,一道积分题。
question about MATLAB matrix squaring EXCEL VBA in real world
compare two large tables SQL (转载)A hedge fund interview questions (CS)
相关话题的讨论汇总
话题: oracle话题: query话题: write话题: max话题: table