There are three tables T1, T2 and T3.
I want an sql query to return a result with these conditions:
T1.Id is in T2.T1Id (T1.Id = T2.T1Id)
AND there is not a row in T3 with Id from T2 for a certain date in a field in T3
Update
Following example is first table name -> Columnname -> example data
Input is a date
Return a row if there is a Break with TimeIntervalId and not a DeletedBreak with the inputed date.
do not return a row if there is no break with IntervalId