What I was trying to say, was that the data entry for a full day would be complete BEFORE you ran any queries so today, you would be looking at yesterday and earlier but never today.
You do unless you are completely replacing the set of data each time you run this process. And if that is the case, you should link to the spreadsheet or csv file rather than importing it to prevent bloat. However, the best solution is to link to the source of the data if the PTB will allow you to.
As several of us have already indicated in one way or another, you can't do that with the method you are planning on using. What happens if in set1 a student has 6 lates and then in set2 he (she's are never late

) has 8 more? you would never reach that threshold without both sets of data available. When does the count reset? After a warning? Never?