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

query help
time__C is child object and account is parent object , i want to add hour__c field of time__c .
i am activating trigger when any time record is created.
but i am getting error executing this query
Error : expecting a right parentheses, found 'order'
i am activating trigger when any time record is created.
but i am getting error executing this query
Time__c tl = [select Time_Account_Mapping__c from Time__c order by LastModifiedById desc limit 1]; Integer x = [select sum(Hours__c) From Time__c where Time_Account_Mapping__c in (select Time_Account_Mapping__c from Time__c order by LastModifiedById desc limit 1)];
Error : expecting a right parentheses, found 'order'
select sum(Hours__c) From Time__c