Posts

Showing posts with the label #SOQL #salesforce

Salesforce interview questions and answers : All about SOQL : Part 1

Que 1. What is replacement of SELECT *  in SOQL? Ans 1. SELECT FIELDS(ALL) FROM Account.               SELECT FIELDS(STANDARD) FROM Account             SELECT FIELDS(CUSTOM) FROM Account * Can not add duplicates fields in select statement Que 2. Which standard objects acts as Junction object ? Ans 2.  1. OpportunityLineItem 2.  OpportunityContactRole 3. CaseSolution 4. CaseArticle 5 PriceBookEntry Que 3. What is FOR UPDATE in SOQL? Ans 3. FOR UPDATE is used for - prevent race conditions                                                                 - thread safety problems       e.g. Account[] accts=[Select Id from Account limit 2 FOR UPDATE]; To lock records,records can't be modified by other us...