function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shubham SengarShubham Sengar 

SOQL problem 5

Get all contacts for accounts that have an opportunity with a particular record type.??
William TranWilliam Tran
Here you go:
select (SELECT id, name FROM Contacts) from account WHERE id in 
(select Accountid from opportunity where RecordTypeId = 'xxxxxxxxxxxxxxx')