Possible Duplicate:
Explicit vs implicit SQL joins
I understand that lots of people will shout at me now. But from my understanding
Say I have two tables
STUDENTS
student_id
firstname
surname
COURSES
course_id
name
student_id
So the courses table has a foreign key STUDENT_ID
meaning that ONE student can have MANY courses yes?
OKAY.
From my understanding, if I want to select all the course associated with ONE student I could do either these:
SELECT *
FROM courses AS c, students AS s
WHERE c.student_id = s.student_id
AND s.student_id = 1;
OR
SELECT *
FROM courses AS c
JOIN students AS s ON c.student_id = s.student_id AND s.student_id = 1;
So what's the point in the JOIN when its essentially EXACTLY the same as the WHERE?
I know my understanding is WRONG but I cannot find a simple answer.
Please enlighten me!