Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please i want the solution of number 4 Purpose: The purpose of this assignment is to write mongodb CRUD queries and operations. Kindly note that

please i want the solution of number 4
image text in transcribed
image text in transcribed
Purpose: The purpose of this assignment is to write mongodb CRUD queries and operations. Kindly note that the assignment has no real database connection. To insert data in the collections you can prepare a JSON file then import it via MongoCompass or add them using insert. In both cases, you need to submit the JSON or the insert operations You can use MongoCompass MongoShell to monitor the collections and confirm your operations are successful. Save your answers to a text file. Submit the text file. 1- The database name is NetflixSeries followed by your ID. Ex: NetFlixSeries201835464 2-Series" is a collection with the following fields: a. SeriesID b. Title of series c. Year of release d. Genre (adventure, comedy, horror, thriller). A series can be associated with more than one Genre e. Actor (first name and last name). A series can have more than one actor f. Director (first name and last name). A series can have more than one director g Number of seasons h. Details. This includes of location of release, dates of release, and the series rating) 3- An "Actor" collection with the following fields: a. Actor id b. First Name c. Last Name d. Address (street, city, country) c. Contact details (this includes email address and phone number) Operations to Perform 4- Insert at least 10 documents in the Series collection of which a- At least one document in associated with more than one genre b- At least one document with a series that was released in more than one location and on different dates. - At least three documents for series released in the same year d. At least two documents for series by the same director - At least two documents for series with the actors Adam Sandler" and Rob Schneider Operations to Perform 4- Insert at least 10 documents in the Series collection of which a- At least one document in associated with more than one genre b- At least one document with a series that was released in more than one location and on different dates. C- At least three documents for series released in the same year. d- At least two documents for series by the same director e- At least two documents for series with the actors Adam Sandler" and "Rob Schneider" 5- Insert at least 5 documents in the Actors collection 6- Display all documents in the Series collection 7- Display all documents in the Actors collection 8- Add/update the rating of the series whose name start with a particular letter. (hint:use findAndUpdate()) 9- Delete a series with a particular title. 10- Update the actors email where the actor ID is = "sampleID" 11- Update the genre for a particular series. Add a new genre..do not replace. 12- Delete all the actors in the series that has number of seasons greater than 2. (hint: use remove()

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions