Back to Catalog

Aggregate Across MongoDB Documents

IntermediateGuided Project

In this guided project, you will discover how to aggregate data from multiple documents in MongoDB and create pipelines to transform data into aggregated results.

4.4 (25 Reviews)

Language

  • English

Topic

  • Database

Enrollment Count

  • 193

Offered By

  • IBM

Estimated Effort

  • 45 minutes

Platform

  • SkillsNetwork

Last Update

  • April 29, 2024
About This Guided Project
MongoDB provides a framework for aggregation based on a data pipeline model. In this framework, documents enter the pipeline and pass through stages that transform data. The end stage returns aggregated results.

MongoDB is a popular non-relational database that supports various data types, including dates and numbers. The pipeline uses native operations and provides efficient aggregation.

In this guided project, you will discover how to create aggregated results from multiple MongoDB documents. You will learn how to gain insight into the data by combining simple aggregation operators to create pipelines. With an aggregation pipeline, you will practice sorting, limiting, grouping, and averaging data. You will explore pipeline operations that return sums, minimum values, and maximum values. You will transform data in stages, from finding averages and sorting outputs to determining key values.

This guided project will prepare you to use aggregation pipeline expressions, optimize pipeline behavior to find many types of aggregated values, and analyze aggregated data successfully.

A Look at the Project Ahead
Once you have completed this project, you'll be able to:
  • Describe simple aggregation operators that process and compute data such as $sort, $limit, $group, $sum, $min, $max, and $avg
  • Combine operators to create multi-stage aggregation pipelines
  • Build aggregation pipelines that draw insights about the data by returning aggregated values

What You’ll Need
Just a web browser!

Everything else is provided to you via the IBM Skills Network Labs environment, where you will have access to the MongoDB service that we offer as part of the IBM Skills Network Labs environment. This platform works best with current versions of Chrome, Edge, Firefox, Internet Explorer, or Safari.

Your Instructor
Ramesh Sannareddy

Instructors

Rav Ahuja

Global Program Director, IBM Skills Network

Rav Ahuja is a Global Program Director at IBM. He leads growth strategy, curriculum creation, and partner programs for the IBM Skills Network. Rav co-founded Cognitive Class, an IBM led initiative to democratize skills for in demand technologies. He is based out of the IBM Canada Lab in Toronto and specializes in instructional solutions for AI, Data, Software Engineering and Cloud. Rav presents at events worldwide and has authored numerous papers, articles, books and courses on subjects in managing and analyzing data. Rav holds B. Eng. from McGill University and MBA from University of Western Ontario.

Read more