I think what you need for your application is a many to many relationship. A student can have many courses he is taking and a course can be taken by many students.
@malico thank you for your replay but
I want to assign course to semester and then allocate semester to the student so a student can have all courses taught in selected semester.