Hi SAS Forum,
I took the attahced two data sets from "SUGI 27 Paper 70-27 An Introduction to SAS PROC SQL by
Harrington, T. J. (Acknowledged thankfully).
Question:
For the given small two data sets, both appraoches produced identical results with "inner join" phrase or without it.
Can I however generalize this conclusion for other situaitions invovling large data sets?
Thanks
Mirisage
My understanding was that the difference between using the inner join phrase and other methodology what that of efficiency, not output. I think it is that the inner join phrase uses a more elegant method than just a "where a.id=b.id" subsetting clause, as it does not simply construct a cartesian product and weed out all of the irrelevant matches.
My understanding was that the difference between using the inner join phrase and other methodology what that of efficiency, not output. I think it is that the inner join phrase uses a more elegant method than just a "where a.id=b.id" subsetting clause, as it does not simply construct a cartesian product and weed out all of the irrelevant matches.
The constructs
select ... from A, B where A.var=B.var
and
select ... from A inner join B on A.var=B.var
are perfectly equivalent. However, in the second case you can replace the word inner by left or right, and by cross or natural if you also remove the on clause.
PG
Hi Murray_Court and PGStats,
Many thanks to both of you for this help.
Regards
Mirisage
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.