Org:Mindful Goat Playground
After completing this unit, you'll be able to:
SOQL reads records. Write it inline in square brackets, filter with WHERE, and sort with ORDER BY. Bind Apex variables with a colon.
ContactSearch with a static method searchForContacts(String lastName, String postalCode).List<Contact> results = [SELECT Id, Name FROM Contact
WHERE LastName = :lastName AND MailingPostalCode = :postalCode];