+ Start a Discussion

Joined query for 2 unrelated objects

I have 2 objects which are completely unrelated to each other. Howerver, they both are related to the Contact object. How do I find the records from Contact which are common to both the objects.
Danish HodaDanish Hoda
hi Sambit,
Use 2  Map<String, List<records>>
the key will contain ContactIds and List<records> will contain the records of objects