I need to left join
between two tables to take courses in the first table, and non-existent in the second table. But I also want to take courses that mark smaller than 60 in the second table(Even if it was exist in two tables).
SELECT offerd_course.id,offerd_course.course_id,
offerd_course.instructor_name,offerd_course.hour,
offerd_course.course_name,
offerd_course.day,offerd_course.place,
offerd_course.type
FROM offerd_course
LEFT JOIN student_course
ON offerd_course.course_id = student_course.course_id
WHERE student_course.mark >=60 AND student_course.course_id IS NULL
How can do it ?