Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey guys plz help me find the answer to these, as much as possible thanks! God bless(: IuowHelp e, 87% , Fri 5:55 PM Luis

Hey guys plz help me find the answer to these, as much as possible thanks! God bless(: image text in transcribed
image text in transcribed
IuowHelp e, 87% , Fri 5:55 PM Luis Lopez a e) csns.calstatela.edu C$1222 HW3 Questions For each of the following question, please use db.(collectionName). find ( {query} )toArray( ) to test result In example, db.users.find().toArray)for first three questions 1. Insert an object containing name of "Eric", age of 25 and position of "lecturer" to users collection 2. Insert another user object containing name of "Alice", age of 20, position of "student" and grade of 84 to userscollection 3. Insert another user object containing name of Bob", age of 21, position of "student" and grade of 89 to userscollection 4. Find users of age between 20 to 23 (inclusive) o hint: at the end of find). please append toArray) for testing 5. Delete user bob o use db.users.find().toArray() to test result 6. Update user object of 'Alice' to grade 95 use db. users. find ( ) .toArray ( ) to test result 7. Update Eric to have a new field called homeAddress containing of following ison: street: 1234 Random st. city' ,Los Angeles. , state: CA o Find user's homeAddress to test result From question 8 to 10, you will be using primer-dataset json 8. Find restaurant ids that is in zipcode "11215" and has score of greater than 50 example from the course note in "restaurants" collection

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions