Say, I have two tables Courses and faculty_courses - each has a primary key course_ID that is varchar(50) not null.
I am trying to delete a row from the Courses table - so assume have to delete that row from both tables since they are linked by a relationship.
I wrote this - doesn't work - says Incorrect syntax near the keyword 'JOIN'
DELETE FROM Courses JOIN faculty_courses ON Courses.course_ID = faculty_courses.course_ID WHERE faculty_courses.course_ID = 'ITM731'
Any ideas?