This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
JavaRanch is NotACodeMill, so you'll need to write this code yourself. But we'll gladly help you learn enough that you can do that.
But first, since this question has nothing to do with the SCWCD exam -which is what this forum is all about- I'll move it to a more appropriate forum. CarefullyChooseOneForum
Joined: Mar 22, 2005
You could either write a DB trigger for that table -if the action to be taken can be handled in the DB-, or periodically check the number of records in that table (using something like "select count(*) from ..."). If doing the latter you'd need to account for deleted records (if that can happen in your case).