Categories

Sep 24, 2019 in Salesforce

Q: What is the Syntax of SOQL Statement?

1 Answer

Sep 25, 2019
Syntax -

1

SELECT field1, field2,.... FROM Object_Type [WHERE condition]

Example:-Queries

1

2

List accountList =  [SELECT ID, Name, FROM Account];

List accountList = [SELECT ID, Name, FROM Account WHERE annual revenue<10000];
Click here to read more about Salesforce
Click here to read more about Insurance

Related questions

Madanswer
Sep 24, 2019 in Salesforce
Sep 26, 2019 in Salesforce
Sep 23, 2019 in Salesforce
...