Answer the question
In order to leave comments, you need to log in
How to make an approximate database schema?
1) there are students, teachers and classes
2) each student is in a class
3) a teacher can teach in one or more classes
4) one or more teachers can teach in one class
Answer the question
In order to leave comments, you need to log in
class
~~~~~~
id
name
teacher
~~~~~~~
id
name
teacher_class
~~~~~~~
class_id
teacher_id
pupil
~~~~~~
id
class_id
name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question