I need a Mysql query for my following problem.
I have two tables.
-
Exam with fields id and examname
-
Exam_Applied with fields id , examname and student_id
Here student_id is the id of student who applied the exam and I am storing in Exam_Applied
Now I need a query to Select the examname From Table Exam which are not applied by the particular student_id
help me plz.
You can use
NOT INto answer your question. Basically what it does is inside subquery, it gets all theexamnametaken by the specific student. TheNOT INchecks the examName of tableExamwhich are not present on tableExam_AppliedHope this makes sense