Question: Answer the following questions using the previous data in lab 6 : 1 - Write a MongoDB query to display the fields restaurant _ id

Answer the following questions using the previous data in lab 6:
1- Write a MongoDB query to display the fields restaurant_id, name, street and zip code,
but exclude the _id for all the documents in the collection.
2- Write a MongoDB query to display all the restaurant which is in the borough Manhattan.
3- Write a MongoDB query to find the restaurants who achieved a score more than 50.
4- Write a MongoDB query to find the restaurant Id, name, borough and cuisine for those
restaurants which contain 'Wil' as first three letters for its name
5- Return all restaurant located on 3 Avenue.
6- Write a MongoDB query to arrange the name of the restaurants in ascending along with
all the columns
7- Update the restaurant for restaurant with id 40639261 to Foster Avenue Coffee
Shop(Ups).
8- Delete the resutrant with id 40639261.
Submit your answers (with screenshots of the result) in Blackboard.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!