I've been working on creating a table consisting of this...
Module(ModuleID, ModuleTitle, ModuleLeader, Credits, CourseworkPercentage, ExamPercentage)
ModuleID should be generated by a sequence
- ModuleTitle and ModuleLeader should have at most 30 characters and should be not null
- Credits should be not null and be 10, 20 or 40
- CourseworkPercentage and ExamPercentage should add up to 100
I have successfully done points 2,3,5 but I am having problems with 4. Not sure how I could write a check constraint to say it has to equal to either 10,20 or 40. Any help would be appreciated.