oracle10g - How to create trigger that will run a subquery to count data -



oracle10g - How to create trigger that will run a subquery to count data -

i have appointment table patient_id. want, patient can create maximum 3 appointment. want trigger check total appointment made patient using patient_id before insert data. trigger raise error if count > 3.

can tell me how can that?

thanks

triggers oracle10g constraints

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -