for 11th question: I still have a doubt with 11th que: select id , name , (select id , name from opportunities where stagename='closed won') from Account SELECT id , name from account where id in(select accountid from opportunity where stagename = 'closed won') select account.name , accountid from Opportunity where stagename = 'Closed Won' I think 2nd approach in this also works right ? Can some one please help me in understanding this
I feel the solution for the 11th question will be SELECT Id, Name FROM Account WHERE Id IN ( SELECT AccountId FROM Opportunity WHERE StageName = 'Closed Won' )
Thank You Ankit! Great help.
Glad I could help you :)
it was more than just helpful..
Thank you, I’m happy that you found it helpful
Very informative and insightful. It will be great if you can cover rest of the questions. Appreaciate all the effort.🙌
Thank you, I will
for 11th question:
I still have a doubt with 11th que:
select id , name , (select id , name from opportunities where stagename='closed won') from Account
SELECT id , name from account where id in(select accountid from opportunity where stagename = 'closed won')
select account.name , accountid from Opportunity where stagename = 'Closed Won'
I think 2nd approach in this also works right ?
Can some one please help me in understanding this
Right, Both the approaches are correct
@@AnkitSalesforce so all the 3 approaches which I have commented will work right?
@@madhumohan2952 Right, all three of them will work. The last one is querying opps instead of account. Thats the only difference
I feel the solution for the 11th question will be
SELECT Id, Name FROM Account WHERE Id IN ( SELECT AccountId FROM Opportunity WHERE StageName = 'Closed Won' )