I have this query that returns the tasks that were not performed:
SELECT COUNT(raddb.TipoTarefa.Id) AS Total, Descricao, IniciarTarefa
FROM raddb.TipoTarefa LEFT OUTER JOIN raddb.Tarefa ON raddb.Tarefa.tarefa = raddb.TipoTarefa.Id
WHERE IniciarTarefa IS NULL
GROUP BY Descricao, IniciarTarefa
But I want it to check during the month on which days the tasks were not performed (since they are daily tasks), because in this way, it is enough that the task is performed on one of the days of the month and is no longer returned.
Update
I have the table where I have the types of tasks:
Now the table where I register the tasks:
For example, only for 10 days. Task 3 was performed on day 20, 21, 22, 23, 25 and 27, but was not performed on day 24, 26, 28, 29 and 30.
In the query, it was intended to return that task 3 was not performed on day 24, 26, 28, 29 and 30, a line for each day, where it returned the task name, and the date of the days when it was not performed