Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account); What occurs when more than one Account is returned by the SOQL query?
Correct Answer: B
The SOQL query assigns its result directly to a single sObject variable (Account myAccount). If the query returns more than one record, Salesforce throws aQueryExceptionbecause the system cannot automatically cast multiple results to a single sObject. Not Suitable: Option A: The variable cannot be automatically cast to a list. Option C: The query itself does not fail but throws an exception. Option D: The first record is not automatically assigned. SOQL Query Considerations