• If you apply the change I suggested, you won't be sending an e-mail when DIFF = 0. In the query you check if the DIFF is smaller then -3 or larger then 3. Hence the DIFF has to be unequal to 0 to comply to these filters. If DIFF equals to 0 then it won't comply to the filters in the query and this will result in the IF EXISTS clause to be false.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **