I have a database problem where basically one course can have many modules AND these modules could be on every single course. So Course 1 could contain module 1 and module 2 but course 2 might only contain module 2. I am hoping to use JSON in the modules table to store timetabling information.
I want to be able to get a list of modules on each course.
What I would want to do is SELECT * from modules where moduleID in (select moduleIDs from courses where courseName = USERSPECIFEDCOURSE)
I want this to return all of the rows in modules table where their ID is matching with the course the user has picked What will this return, is there a better way of doing this?
