You need to sign in to do that
Don't have an account?

SOQL help
I have custom field "Email__c" on Account . If I try to run below query,
If I run below query, I get "Unknown error parsing query" error. Not sure what I'm doing wrong here.
SELECT ID , Account.Email__c ,Email FROM Contact WHERE Account.Email__c != Email
Below query runs successfully
SELECT ID , Account.Email__c ,Email FROM Contact WHERE Account.Email__c !=''
Thanks for help.
If I run below query, I get "Unknown error parsing query" error. Not sure what I'm doing wrong here.
SELECT ID , Account.Email__c ,Email FROM Contact WHERE Account.Email__c != Email
Below query runs successfully
SELECT ID , Account.Email__c ,Email FROM Contact WHERE Account.Email__c !=''
Thanks for help.
Where are you running the query, also you have to use != with String literal as ' Your Email Id'
SELECT ID , Account.Email__c ,Email FROM Contact WHERE Account.Email__c != ' Email Id '
Hope this helps
--
Thanks,
Swayam
Please ues the this soql and it will work fine as per your requirement.
SELECT ID , Account.Email__c ,Email FROM Contact WHERE account.Email__c != 'Email'
Thanks
Gyani
Mirketa Software Pvt. Ltd.
http://www.mirketa.com