function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sreekanth reddysreekanth reddy 

SOQL Query Rule Criteria

Hi All,

I  Am trying to get result using below query.

select name,phone,email from account where name=:name and phone=:phone and email=:email . And
how to get combinational query.means
name+phone OR name+phone+email.
Thanks
Sai
Amit Chaudhary 8Amit Chaudhary 8
Please try below query :-
select name,phone,email from account where ( name=:name and phone=:phone and email=:email )  or ( name=:name and phone=:phone )
Please let us know if this will help you.