Hello...
I have a parent table called Tickets (tech-support tickets) and a related child table named Tasks, related via TicketID. One ticket can be made up of one or more tasks. Each ticket has a status of open or closed. Each task has a status of completed, waiting, etc.
I'm trying to locate all tickets where all of its tasks are marked completed. Once those tickets are found, I can then go into those ticket records and mark them as closed. But, I'm having a challenge trying to query for those parent ticket records whose status is open and where all of the associated child task records are marked as completed.
Any ideas?
Thank you,
Michael
I have a parent table called Tickets (tech-support tickets) and a related child table named Tasks, related via TicketID. One ticket can be made up of one or more tasks. Each ticket has a status of open or closed. Each task has a status of completed, waiting, etc.
I'm trying to locate all tickets where all of its tasks are marked completed. Once those tickets are found, I can then go into those ticket records and mark them as closed. But, I'm having a challenge trying to query for those parent ticket records whose status is open and where all of the associated child task records are marked as completed.
Any ideas?
Thank you,
Michael