I am writing a logic where i need all the contact which has all the opportunities in closed won stage.
I.e If we have an contact which has 2 opportunity, one is closed won and other is prospect then this contact should not be present in query result.
if a contact has only 2 opportunities and if both are in closed won stage then that contact should appear in result.