SAS中文论坛

标题: 求助 [打印本页]

作者: shiyiming    时间: 2010-3-30 23:29
标题: 求助
以前没有学过SAS,拜托懂的人教下,比如我的SQL语言:
select city,sum(employee.salary),sum(space),count(city),count(employee.salary),max(employee.salary)
from store inner join employee
on
store.store_id=employee.store_id
group by city;
这个查询语句用SAS表现出来是怎么写的?我这么写对不对:
proc sql;
  create table kids3 as
  select city,sum(employee.salary),sum(space),count(city),count(employee.salary),max(employee.salary)
  from store inner join employee
  on
  store.store_id=employee.store_id
  group by city;
quit;
proc print data=kids3 noobs;
run;

对不对…… 这个是我在网上找的……然后自己乱加上去的……




欢迎光临 SAS中文论坛 (http://www.mysas.net/forum/) Powered by Discuz! X3.2