Q. What is a SOQL (SALESFORCE OBJECT QUERY LANGUAGE)?
Answer:
The Salesforce Object Query Language (SOQL) to construct simple but powerful query strings to select records from salesforce objects. Similar to the SELECT command in Structured Query Language (SQL), SOQL allows you to specify the source object (such as Account), a list of fields to retrieve, and conditions for selecting rows in the source object.
For example, the following SOQL query returns the value of the Id and Name field for all Account records if the value of Name is Sandy:
SELECT Id, Name FROM Account WHERE Name = 'Sandy'