Every five minutes, my system will produce a file and I will store the file name in my table.
I name the file name like:
- studentA202106011940-202106011945.zip
- studentA202106011945-202106011950.zip
So in one day, I will store 288 files in my table.
Now I can search the file in some day like:
select *
from studentData
where LEFT(SUBSTRING_INDEX(fileName, '-',-1),8)='29210601'
How can I quickly find the missing data from table?
NOT EXISTSto see which ones are missing.