I have two tables A and B, both having timestamp field in it and one of the timestamp is 4 days ahead of the other.
e.g A timestamp is today B timestamp is today+4 days
Is it possible to create triggers in sql that automatically keeps on checking the difference of the timestamp and throw a result once A.timestamp - B.timestamp = 0 or is there any way of doing it.