Inner join in SAS DI

Reply
Occasional Contributor
Posts: 11

Inner join in SAS DI

I am joining 2 large datasets in SAS DI using SQL join transformation. I am using inner join. Out of the below options which will take less time and why?
a)
Proc sql;
Create table abc as select a., b.city  from emp as a, emp_details as b
Where a.empid=b.empid;
Quit;
b)
Proc sql;
Create table abc as select a., b.city  from emp inner join emp_details as b
On a.empid=b.empid;
Quit;

Super User
Posts: 5,254

Re: Inner join in SAS DI

Well, if you have the data, try and compare.
I would suspect that the performance is the same.
Data never sleeps
Super User
Posts: 9,656

Re: Inner join in SAS DI

They both are the same code. I could expect the same performance either .
Ask a Question
Discussion stats
  • 2 replies
  • 197 views
  • 0 likes
  • 3 in conversation