Assignment3-MongoDB

docx

School

University of Texas, Dallas *

*We aren’t endorsed by this school

Course

6320

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

14

Uploaded by DukeProtonBison26

Report
Assignment 3 Name – Rushad Dhanore , Net ID – RXD220036 , Date – 04/17/23 PART 1: MongoDB CRUD operations PART 2: MongoDB Array Operations PART 3: MongoDB Aggregate Operations MongoDB CRUD operations 1. Insert a single document into the collection. 2. Insert Many Documents into the Collection
3.Insert Many Documents with a user-generated primary key. 4.Insert Many Documents with duplicate data.
5.Insert Many Documents with duplicate data and continue inserting the remaining docs 6.Insert Many Documents, with each one having additional fields.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
7.Find all documents from the collection. 8.Find all documents in the collection and display one field.
9.Find all documents in the collection and display one field and exclude the primary key 10.Find documents in a collection with a condition.
11.Find one document that matches the condition. 12.Update one document that matches the condition.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
13.Add a new field to documents using the update. 15.Delete one document in a collection.
MongoDB Array Operations: 1. Import airnb.json to your database and run db.airnb.find() and provide the output for the first 20 documents
3.List all the hotels with Gym. 4.List all the hotels with prices of more than $100.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
5.Update all documents with one extra amenity as “Keyless entry,” where the price is more than $200. MongoDB Aggregate operations
1. Count all the documents in the Airbnb collection. 2. Count total reviews for entire collections. 3. Count documents with amenities of more than 20
4. Count documents with reviews of more than 10 5. Count documents with host_listing_count > 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Results: Before starting the assignment in NoSQL Booster, Click on Tools -> Show Command Log window. I need to see all commands used.
Expected Output: 1. 10 Screenshots of result output as shown below with full screen, Top to bottom clearly . 2. Script for all the commands. Example scripts: attached