I am trying to use this page as a reference but can't get my situation to work SQL: Select records where ALL joined records satisfy some condition
I have two tables - one is task list and the other is task steps
I want to join the tables on taskID
and find the taskID
's where all steps are marked complete but the overall task is not marked complete yet.
table1 table2
taskID | taskName | taskComplete | taskID | stepID | stepComplete
1 task1 0 1 21 1
2 task2 0 1 12 1
1 34 1
1 11 1
2 8 0
2 6 0
2 4 1