You need to sign in to do that
Don't have an account?
soql query error please help.
hi i written this query then showing error. please help.
this is working well.
list<product2> pro=[select id,name,(select id from attachments) from product2 ];
But here i want to show only products which product records has attachments. But getting error.
list<product2> pro=[select id,name,(select id from attachments) from product2 where id in (SELECT ParentId FROM Attachment) ];
First store the ParentId then query based on paren Id
All Answers
First store the ParentId then query based on paren Id