I have a table of technical calls and a table of calls. Each 'CALL' has several 'CALLS' and it is in the calls that the field defines the status of the call (Open, Closed, In Progress, Suspended, etc ...)
Currently, when I need to list only open calls, I'm looking for ALL calls and for each call I make a new query checking if the last call is closed or not. This practice is not correct. How can I, in a single query, only search for calls in which the last service is not CLOSED?