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

SOQL Query not working for Cases
I want SOQL that returns Cases with the relevant Account Name
I tried the following SOQL statement but I'm receiving an error
Select c.Id, c.CaseNumber, c.AccountId, (Select a.Name From Account a) from Case
I tried following the guidelines in the following web site
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_relationships.htm
Thanks
Stephen
Account is not a child of case, so you shouldn't be using a nested select, its just
select id, subject, account.name from case
Hi Simon
Thanks for the quick response.
I have one more favour to ask. How would I create the SOQL to return the person who created the case (CreatedBy)
Thanks
Stephen