how to give date in soql query developer code example Example: soql last year delete [SELECT Id FROM Opportunity WHERE CreatedDate = LAST_YEAR];