I have requirement where i need to process account which has no child but has parent and accounts which has no parent and child separately.
select id, name,(select id, name from Accounts) from Account
But it giving me error.
Any workaround/suggestions would greatly appreciated.
Please Help thanks!