I need to limit an insert in a table if a row has already a certain numbers of references in that table. I have this table named generals_and_divisions that references other