Giter VIP home page Giter VIP logo

23_mongo_shell_peer_01's Introduction

Prime Mongo Shell Peer Challenge

Now that you've learned some of the basics of querying MongoDB via the mongo shell, use that information to query a collection of bios. Remember to switch off with your partner half-way through this exercise.

Instructions

Setup

  1. Start the MongoDB server with mongod.
  2. In another terminal window, start the Mongo shell with mongo.
  3. Create a new database called challenge.
  4. Create a collection called bios in the new database.
  5. Insert the records from the bios.bson file into the bios collection. NOTE: you should be able to copy/paste the entire array into the appropriate collections method.

Queries

  1. Create a file, queries.bson that will contain the queries that correctly address the criteria in the steps that follow.
  2. Find documents that have awards.
  3. Find documents that don't have awards.
  4. Find documents that have contribs for OOP or UNIX.
  5. Find documents with "Turing Award" awards.
  6. Find documents with IDs between 3 and 7.
  7. Find documents with awards that were awarded before the year 2000.
  8. Find documents with birth dates, but no death dates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.