Achieve your business goals faster by unlocking our Salesforce Cloud Services.
Select Student_name from student__c where couse_opted__c = ‘Salesforce Admin’;
Select Student_name from student__c where couse_opted__c = ‘Salesforce Admin and App Builder’ OR couse_opted__c = ‘Salesforce Developer’;
Select Student_name from student__c where couse_opted__c = ‘Salesforce Admin and App Builder’ OR graduated__c = false;
Example:
public class soql
{
public static void main()
List<Account> accList = [Select Name, NumberOfEmployees from account]; for(integer i=0; i<accList.size(); i++) { System.debug(accList[i].numberOfEmployees); } // *** FOR EACH LOOP *** for(Account a:acclist) { System.debug(‘Acc Name = ‘+a.Name+’NumOfEmp = ‘+a.numberOfEmployees); }
}
Note: It is mandatory to mention the field in the SOQL query which you want to access in the Apex Code.
Note: Comparison of strings are case sensitive using ’=’ operator in soql.
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a Result
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.