You need to sign in to do that
Don't have an account?
debprakash shaw
how to write the Soql query for retrieve the record those are not in (from date to this date)
Hi,
I want to retrieve the record which is not on those dates like (Form_Date to To_Date )
Thanks in advance
I want to retrieve the record which is not on those dates like (Form_Date to To_Date )
Thanks in advance
try this
SELECT name ,id ,Account.name ,CreatedDate from Contact WHERE NOT (CreatedDate >= 2022-04-20T23:01:01Z AND CreatedDate <= 2022-04-30T23:01:01Z)
All Answers
Select id from Opportunity WHERE Start_Date__c <= 2015-07-30 AND End_Date__c >= 2015-05-01
WHERE Start_Date__c <= 2015-07-30 //Latest date
End_Date__c >= 2015-05-01 //Earliest date
Related: https://salesforce.stackexchange.com/questions/80119/query-to-get-all-opportunities-that-between-start-and-end-date
https://developer.salesforce.com/forums/?id=906F00000008m41IAA
Thanks
Thanks for giving an Answer but
I want to retrieve the record which is not on those dates like (Form_Date to To_Date, the record does not show in-between days )
try this
SELECT name ,id ,Account.name ,CreatedDate from Contact WHERE NOT (CreatedDate >= 2022-04-20T23:01:01Z AND CreatedDate <= 2022-04-30T23:01:01Z)
In this query, I want to filter any specific contact record then how can write?
like:-
SELECT name ,id ,Account.name ,CreatedDate from Contact WHERE NOT (CreatedDate >= 2022-04-20T23:01:01Z AND CreatedDate <= 2022-04-30T23:01:01Z) And account.id=' '
thanks in advance
In this query, I want to filter any specific contact record then how can write?
like :- And Id ='0021578de62de52'
how to add this in this query
'0021578de62de52' :-- this is only a example ,this is not real id
Thank In Advance