I want to find jobs that have lines where "Work status" is DISPATCHED and "Reason ID" is empty (in the picture upper one marked with red). With my current inquiry it still finds also jobs that have lines where work status is right but there is random reason ID (in the picture lower one marked with red). https://i.stack.imgur.com/RmBVH.png
Here is my current query:
https://i.stack.imgur.com/8jHDd.png
Any idea what is wrong with my inquiry? So I want jobs where in "Stage reasons table work status is DISPATCHED and ReasonID is empty. The way tables are connected is 1:n. Im using Microsoft AX 2009