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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -