When I try to use the SQL below it does not work for some reason.
proc sql;
create table as work.myemployees
Select empid, count(*)as num_of_shifts
from work.employees
group by empid
having count(*) >1;
quit;
But if use the same sql but without try to create table it works.
proc sql;
Select empid, count(*) as Numer_of_shifts
from work.employees
group by empid
having count(*) >1;
quit;
Could you put me in the right direction please?
Thanks
Saqi
proc sql;
create table as work.myemployees
Select empid, count(*)as num_of_shifts
from work.employees
group by empid
having count(*) >1;
quit;
But if use the same sql but without try to create table it works.
proc sql;
Select empid, count(*) as Numer_of_shifts
from work.employees
group by empid
having count(*) >1;
quit;
Could you put me in the right direction please?
Thanks
Saqi