由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - SQL query 求解!
相关主题
面试SQL query 求解!job open
女码农求湾区工作机会/内推,已经刷题找工大半年为什么H1B会有人被拒?
请帮忙做一个SQL问题找工作 统计 包括phone, onsite, email
SQL combine two columns from two different tables no shared columns有人了解TEKsystem么?
帮朋友发一个上海的OPENING~~~~面试归来,求祝福
EE背景工作選擇問題郁闷,被amazon放鸽子。。
有没有contract company的联系方式朋友的公司在招一名Account Payable Specialist - 华盛顿 DC
如何选择payroll vendor?求助:Contract 申请 H1B
相关话题的讨论汇总
话题: vendor话题: sal话题: goods话题: sql话题: table
进入JobHunting版参与讨论
1 (共1页)
o******y
发帖数: 13
1
都是面试题。
1. 假设有一TABLE EMP(id, sal, department). 找出所有employees whose
salary more than the average for their RESPECTIVE department.
2. 假设有一TABLE contains goods sold by vendors,GOODS(vendor_id, good_
id). 找出所有vendors who have the same or wider list of goods than vendor
002.
s**********e
发帖数: 63
2
*Solved in SAS;
*Q1;
proc sql;
title1 "ID with average salary"
title2 ">department average";
select id, sal, avg(sal) as avgsalary format=dollar11.2;
from emp
group by department
having sal>avg(sal);
order by id;
quit;
*Q2;
proc sql;
create table lists as select vendor_id, count(good_id) as list from table1
group by vendor_id
quit;
proc sql;
select vendor_id from lists where list>(select list from lists where vendor_
id=002);
quit;
1 (共1页)
进入JobHunting版参与讨论
相关主题
求助:Contract 申请 H1B帮朋友发一个上海的OPENING~~~~
(Sr.) software engineer Job openings in Amazon Transportation DepartmentEE背景工作選擇問題
招聘两名vendor SDET有没有contract company的联系方式
请教Amazon - Vendor Manager 电面的内容, 谢谢!如何选择payroll vendor?
面试SQL query 求解!job open
女码农求湾区工作机会/内推,已经刷题找工大半年为什么H1B会有人被拒?
请帮忙做一个SQL问题找工作 统计 包括phone, onsite, email
SQL combine two columns from two different tables no shared columns有人了解TEKsystem么?
相关话题的讨论汇总
话题: vendor话题: sal话题: goods话题: sql话题: table