I have a scenario as below
Account --> contact (multiple)
Multiple contacts can be related to an account and I want to get only the contacts where there is a field called industry != a specific criteria.
eg: How do I group all the contacts that are related to an account where the contact's industry != 'Electronics' and this needs to be displayed on a visual force page. I think I need to create a map of account, contacts_with_industry!='Electronics' and use this map in VF, but the problem is map does not accept duplicate key (account Id)
How do i get only those contacts related to the account where it does not meet a specific criteria
Thanks in advance for the help