I have to database tables "Courses" and "Students".
- Courses table has columns ("_id", "course_name", "course_number").
- Student table has columns ("student_name", "student_number", "course_number").
I've created Courses table, but i have problem with creating Students table.
Two classes may have same student, so same student row will exist twice with different "course_number"
s in Students table. I don't want replicate rows. In this way i can't also make "student_number"
as primary key
. Because it will exist twice for multiple classes. How to design this tables, i can't put multiple "course_number"
s to same columns.