I have an entity in Core data with date
attribute.
I want to fetch all the missing rows in a date range from Core data.
Eg: I have 25th-Dec-2021 row in Coredata. Now, I want to get all the dates in Dec 2021 (Date range -> 1st-Dec-2021 to 31st-Dec-2021) except the 25th-Dec-2021
In SQLite I could achieve this by creating a temporary table with dates from 1st-Dec-2021 to 31st-Dec-2021 by using Recursive CTE and then subtracting my existing table. This will give me the missing rows in the date range.
I am not sure how I can achieve this in iOS Core Data.