Select a.Name, a.Id From Account a WHERE OwnerId = 'xyz' AND (Name LIKE '0%' OR Name LIKE '1%' OR Name LIKE '2%' OR Name like '3%' ) order by Name asc
This query works well in my developer edition environment, but in enterprise environment it doesnt work (I cannot get any results). Can someone please point me in the right direction?
Hi sujithkrish,
Ensure that you have records matching with query criteria in your enterprise edition.
Thanks for your reply Rahul.
Yes. We do have enough results which match the criteria. In fact we have tried setting limit in our query, but didnt work through.
Is there anything else I need to look at?
Possible - are sharing rules possibly blocking your results in the EE?
Have you tested running your query in System Logs on EE?
Thanks
Ankit Arora
Blog | Facebook | Blog Page
hi sujithkrish,
what about the owner id, here you are trying to hard code it in your dev org. check the owner id...