Created
March 1, 2017 13:45
-
-
Save pchittum/b5909964d3fb426f3d619ea5eaaa41fa to your computer and use it in GitHub Desktop.
Trailhead code critiques
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //alternative or additional query to show sub query that is not unbounded | |
| for(Account a : [SELECT Id,Name | |
| FROM Account | |
| WHERE Id IN :Trigger.New | |
| AND Id NOT IN (SELECT AccountId | |
| FROM Opportunity | |
| WHERE AccountId in : Trigger.New)]){ | |
| System.debug(a); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment