What does the query return if there is no Contact with the last name - ProProfs Discuss
Topics
Products
Follow Us:

What does the query return if there is no Contact with the last name 'Smith'?
A developer has the following query: Contact c = [SELECT ID, firstname, lastname, email FROM Contact WHERE lastname = 'Smith;.



A. A contact initialized to null.
B. An error that no rows are found.
C. An empty List of Contacts.
D. A Contact with empty values.

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 15, 2020

+ Answer
Request

1 Answer

Wyatt Williams

Wyatt Williams

Answered Mar 18, 2018

B. An error that no rows are found.

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.