I am maintaining a database of students and their results. The fields in the 'results' table are student_ID, subject_code & credits. There are 10 subjects and the credits are tabulated student_ID-wise, i.e. the student_ID changes after every 10 records. Simple. After updating the table by copy-pasting from an excel file containing latest results, it was noticed that some results are missing--a few student_IDs had only 8 or 9 subject_codes against their entries. There are no null values at all. Now how to set a query to find out what are the student_IDs and the sub_codes for which credits are not available?