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. An error that no rows are found
B. An empty List of Contacts
C. A contact initialized to null
D. A contact with empty

This question is part of Platform Dev 1
Asked by Msladysyrenne, Last updated: Jan 28, 2020

+ Answer
Request

2 Answers

ishita.dixit.de

Ishita.dixit.de

Answered Jan 09, 2020

This SOQL will return an empty list

 

msladysyrenne

Msladysyrenne

Answered May 09, 2018

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.