This is published by Selçuk GÖKTAŞ

Contact with Linkedin for Questions.

https://www.linkedin.com/in/selcukgoktas/

Other Github Repos

https://github.com/selcukgoktas

Simple SOQL Query

SELECT Name,id FROM Account
// SOQL VS SQL
SELECT Id, Username, LastName, FirstName, Name, CompanyName, Email, UserRoleId, ProfileId, LastLoginDate FROM User

// SELECT * FROM Account cannot be used Wildcard from the column side.

// INSERT INTO ..... VALUES ...... cannot be used to insert data into the table or object.

// DML insert acc; // insert data into the Saleforce object can be made by DML operations.

APEX SOQL USAGE

// SELECT Id, Name, Type, Phone, Website, Industry FROM Account
// datatype variableName = exp

List<Account> accounts = [SELECT Id, Name, Type, Phone, Website, Industry FROM Account];

System.debug('SF Hesaplar : '+accounts);

SOQL + FOR