Course table
cid(course id)
cname
course_student table
sno(student id)
cid(course id)
Student table
sno(student id)
name
Hello peeps! I need your help on this one... the query i need is when i delete the record from course table it should delete all the records where that cid = sno in course_student(without leaving orphans) and where sno of course_student = sno of student at once! (php5 and mysql)
Thanks