Is it possible to do a trigger on the following scenario:
Professor have many to many relationship to department. So, It has a composite table linking both professor and department called deptassign.
prof A work 50% in engineering and 50% in IT department. If I were to add more information on prof A 20% on economic department.
so the total now = 50 + 50 + 20 = 120%.
I wan to to a trigger that restrict after the user trying to insert value that are greater than 100% for a particular professor with respect to his id.
prof_id dept_id percentage
A 1 50
A 2 50
Please advise.if it possible.. i would to work on it...fyi i'm a newbie in trigger
Thank you.
