I have a web app that logs invalid login attempts to a database table.
Is there a way to create a trigger on the table that only runs after a certain number of records have been created in the last hours or so, short of something like if count(*) > 100
?
The end goal is to send an email if there are an abnormal number of failed login attempts.