I have a custom object Professor
Professor { Name(Text) , Salary(Number) , Bonus(Number)}
I wrote the query in Developer console
select Name from Professor__c where (salary__c + bonus__c) > 7
and got below error
Unknown error parsing query:
Professor__c where (salary__c + bonus__c) > 7 ^ ERROR at Row:1:Column:57 unexpected token: ')'
How to write expression in SOQL WHERE and SELECT clauses?