由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - interview question (SQL)
相关主题
SQL combine two columns from two different tables no shared columnsStress Analysis Engineer at GE in Houston (转载)
Job info: malware research engineer positionANSYS FEM at Semicon Area
amazon 1st phone interviewANSYS FEM at Semicon Area
问个GG面经里的题Resume 求修改建议
请教一个刚被问的sql问题报一个口头offer, 请教negotiation
搞数值计算的PhD能找到工作吗?LD投了大量简历,没有回音,正常吗?
A technical question about Clooking for a civil engineer
有谁知道Ansys第一轮non-technical电面会问些什么找实习请教。。。
相关话题的讨论汇总
话题: table话题: sql话题: double话题: sqr
进入JobHunting版参与讨论
1 (共1页)
H*M
发帖数: 1268
1
write in ANSI SQL only.
you are given two tables:
Table A:
IDA(int) x(double) y(double) correlatedIDB(int)
1 1.0 2.0
2 2.1 3.3

Table B:
IDB(int) x(double) y(double)
1 1.1 2.1
2 2 3
3 10 15
find the cloest ID in table B for each row in A and update the value in Tabl
e A.
by closest, it means min(sqr(A.x-B.x) + sqr(A.y-B.y)).
Therefore,
The correlatedIDB of the first row in Table A should be 1
The co
1 (共1页)
进入JobHunting版参与讨论
相关主题
找实习请教。。。请教一个刚被问的sql问题
真心求指点 (Heat transfer 背景)搞数值计算的PhD能找到工作吗?
问个SQLA technical question about C
今天做题发现了一个很不明显的bug有谁知道Ansys第一轮non-technical电面会问些什么
SQL combine two columns from two different tables no shared columnsStress Analysis Engineer at GE in Houston (转载)
Job info: malware research engineer positionANSYS FEM at Semicon Area
amazon 1st phone interviewANSYS FEM at Semicon Area
问个GG面经里的题Resume 求修改建议
相关话题的讨论汇总
话题: table话题: sql话题: double话题: sqr