Link to home
Start Free TrialLog in
Avatar of slamhound
slamhound

asked on

Inner Join or Not Inner Join...

I have a co-worker who has devised this method of querying multiple data tables:

SELECT * FROM Students, Bookings, RotaryClubs, Schools WHERE Students.RotaryID=RotaryClubs.RotaryID and Bookings.StudentID=Students.StudentID and Schools.SchoolID=Bookings.SchoolID

And much to my surprise, it seems to work!

Is there anything wrong with this method? What benefits do INNER JOINs give over this method?
ASKER CERTIFIED SOLUTION
Avatar of nigelrivett
nigelrivett

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ibro
ibro

Agree with nigel.
The only thing you can benefit from inner joins is the better readability of the code.
>> The only thing you can benefit from inner joins is the better readability of the code.

Matter of opinion. Much prefer the abbreviated syntax as easier to format (and less typing).