hi all,
i have a table called depart_assign:
id dept_id percent
1 1 30
1 2 70
2 1 50
id and dept_id are the pks.
Is it possible to create a trigger in mysql( i know that newest version support trigger) to block the data entry when the percent is greater than 100 assuming that one person can work with more than one department ( dept_id = 1 and 2)?
Should I do this checking in php?
please advise...
tq