Select count(id) from tableA where id in( select id from tableB where name = "hello" )

Hello
can anyone help me converting this sql query to mongodb

Hello @Harshitha_Shekar, Welcome to MongoDB Developer Forum :slight_smile:

It would be helpful if you share some example documents for both collections.

1 Like