Theory Questions: Finalexam. Write Down The Command That You Have Used Inside The Terminal To
Theory Questions: Finalexam. Write Down The Command That You Have Used Inside The Terminal To
Practical:
4. Use mongo shell to answer the question. Optionally you can use compass for help. In
the restaurants collection,
a. Write a query to find the restaurants whose star rating is greater than or equal
to 3.6 and less than 4.6 and whose cuisine is either of these 2 ['Indian',
'Italian’]. You are expected to write a query that looks like this
db.collection.find(…) for this part of the question
b. What is the count of people from the above query. Write the query you have
used for getting the output.