Стоматологический стол:
StudentID
Decayed
Таблица посещений:
StudentID (This student id can be repeated depends on how many visits they have)
Date
Timein
МОЙ ИСТОЧНИК:
DELETE a.*, b.* FROM
Dental a LEFT JOIN Visits b
ON b.StudentID = a.StudentID
WHERE a.StudentID = '11111';