由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 求解SAS ADV 63题中的一道题
相关主题
问几道SAS Adv的题question about SAS BASE 123 No.64?
请教SAS ADV 最新真题sas base 再问问
问几道SAS ADV真题。多谢!在线等:SAS sql问题请教
问几道SAS Adv的题SAS base 50题第29题求解惑
请教:三道SAS BASE题Cleveland Clinic Job Opening - Data Scientist II
Base sas/If else questionsCleveland Clinic Job Opening - Data Scientist II
SAS123题之64和50题之37居然题目相同,答案不同!McLean, VA地区entry level PhD数据科学家什么价位?
求高人指点,base 70题库中的第64题的答案为什么是5?欢迎申请BIOSTATISTICS@UAMS
相关话题的讨论汇总
话题: jobcode话题: salary话题: avg话题: pt1话题: select
进入Statistics版参与讨论
1 (共1页)
m*******r
发帖数: 10
1
6. The table WORK.PILOTS contains the following data:
WORK.PILOTS
Id Name Jobcode Salary
--- ------ ------- ------
001 Albert PT1 50000
002 Brenda PT1 70000
003 Carl PT1 60000
004 Donna PT2 80000
005 Edward PT2 90000
006 Flora PT3 100000
The data set was summarized to include average
salary based on jobcode:
Jobcode Salary Avg
------- ------ -----
PT1 50000 60000
PT1 70000 60000
PT1 60000 60000
PT2 80000 85000
PT2 90000 85000
PT3 100000 100000
Which SQL statement could NOT generate this result?
A. select
Jobcode,
Salary,
avg(Salary) label='Avg'
from WORK.PILOTS
group by Jobcode
;
B. select
Jobcode,
Salary,
(select avg(Salary)
from WORK.PILOTS as P1
where P1.Jobcode=P2.Jobcode) as Avg
from WORK.PILOTS as P2
order by Id
;
C. select
Jobcode,
Salary,
(select avg(Salary)
from WORK.PILOTS
group by Jobcode) as Avg
from WORK.PILOTS
order by Id
;
D. select
Jobcode,
Salary,
Avg
from
WORK.PILOTS,
(select
Jobcode as Jc,
avg(Salary) as Avg
from WORK.PILOTS
group by 1)
where Jobcode=Jc
order by Id
;
1 (共1页)
进入Statistics版参与讨论
相关主题
欢迎申请BIOSTATISTICS@UAMS请教:三道SAS BASE题
[转载] Frequentist View and Bayesian ViewBase sas/If else questions
SAS考证基础知识SAS123题之64和50题之37居然题目相同,答案不同!
我也来攒个RP,谈谈SAS ADVANCE。求高人指点,base 70题库中的第64题的答案为什么是5?
问几道SAS Adv的题question about SAS BASE 123 No.64?
请教SAS ADV 最新真题sas base 再问问
问几道SAS ADV真题。多谢!在线等:SAS sql问题请教
问几道SAS Adv的题SAS base 50题第29题求解惑
相关话题的讨论汇总
话题: jobcode话题: salary话题: avg话题: pt1话题: select