楼主: fay_813
2200 3

[问答] 请教一道SAS ADV认证的题目 [推广有奖]

  • 0关注
  • 0粉丝

高中生

32%

还不是VIP/贵宾

-

威望
0
论坛币
1028 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
111 点
帖子
10
精华
0
在线时间
39 小时
注册时间
2008-12-25
最后登录
2018-2-14

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

59. Given the following SAS program:

proc sql;

select name, salary, birthdate

from employee

where 500 = (select amount from sales where employee.name = sales.name);

quit;

Which SQL procedure program produces the same output?

A. proc sql;

select sales.name, salary, birthdate

from employee, sales

where employee.name = sales.name and amount = 500; quit;

B. proc sql;

select name, salary, birthdate

from employee

where select amount from sales

where employee.name = sales.name = 500;

quit;

C. proc sql;

select name, salary, birthdate

from employee, sales

where name = name and amount = 500;

quit;

D. proc sql;

select (select sales.name from sales where amount = 500), salary, birthdate

from employee

where employee.name = sales.name;

quit;



我想问问为什么不能选D。我用SAS跑了一下程序得到提示“ERROR: Unresolved reference to table/correlation name sales.
”,可是不知到为什么不行。



谢谢~~

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:correlation Reference Procedure following Employee 认证

沙发
bjpucl 发表于 2014-2-24 16:14:54 |只看作者 |坛友微信交流群
选A吧,其它3个选项语法不对。

select (select sales.name from sales where amount = 500), salary, birthdate
要改为
select * from  (select sales.name from sales where amount = 500)
这种类型才对,select后不能接select语句。
已有 1 人评分论坛币 收起 理由
Still.. + 50 热心帮助其他会员

总评分: 论坛币 + 50   查看全部评分

使用道具

藤椅
fay_813 发表于 2014-2-24 16:29:27 |只看作者 |坛友微信交流群
bjpucl 发表于 2014-2-24 16:14
选A吧,其它3个选项语法不对。

select (select sales.name from sales where amount = 500), salary, bi ...
看懂了,谢谢

使用道具

板凳
wh7064rg 发表于 2014-8-2 13:37:35 |只看作者 |坛友微信交流群
谢谢!学习了

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 00:23