Which option is the...
 
Notifications
Clear all

Which option is the preferred optimized method to achieve this for the Account named ‘Ozene Electronics’?

1 Posts
1 Users
0 Likes
181 Views
(@woodliffrueben)
Noble Member
Joined: 2 years ago
Posts: 735
Topic starter  

A developer has requirement to query three fields (id, name, Type) from an Account and first and last names for all Contacts associated with the Account.

Which option is the preferred optimized method to achieve this for the Account named ‘Ozene Electronics’?

  • A . Account a = (SELECT ID, Name, Type from Account where name= Ozone Electronics;) list 1contacts = (SELECT firstname, lastname from Contacts where accountid=: a -ID0;
  • B . Account a = (SELECT ID, Name, Type, (select contat,firstName, Contact,LastName from Account, Contacts) from Account where name; Ozone Electronic' Limit 1 );
  • C . List 1Accounts = (Select ID, Name, Type from Account Join (Select ID, firstname, lastname form Contact where contact account , name 'ozone electronics));
  • D . List 1Contacts = new list ( );
    for(Contact c ; 1Select firstname, lastname Account, Name Account,ID Account, Type from
    Contact where Account: Name=' electronics')) ( iContacts.add(c);)

Show Answer Hide Answer

Suggested Answer: B

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: