hello,
assume i have two tables
Table 1 courses
course_id,title
Table 2 scores
user_id,course_id,grade
i have a variable course_id is 2
i have two queries which one of them have good performance?
Query 1
select courses.title,scores.grade from courses,scores where courses.course_id=‘2’ and scores.course_id=‘2’
Query 2
select courses.title,scores.grade from courses,scores where courses.course_id=‘2’ and scores.course_id=courses.course_id