Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Reports
    • Case Studies
    • Whitepapers
    • Blog
    • Testimonials
    • Community
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Career
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • My License
  • Download
search

Academy 3T

  • MongoDB 101: Getting Started
  • MongoDB 201: Querying MongoDB Data
  • MongoDB 301: Aggregation

MongoDB 301: Aggregation


Go deeper into MongoDB Aggregation

MongoDB 301: Aggregations is Academy 3T’s intermediate MongoDB course that builds on both MongoDB 201 and MongoDB 101.

Packed with just the right amount of theory and hands-on exercises, you’ll get to understand more about Aggregation in MongoDB.

  • Learn the basics of creating an Aggregation pipeline in the MongoDB shell
  • Use the Studio 3T Aggregation Editor to make and debug more powerful Aggregations
  • Dig deeper into how to work with arrays in the Aggregation date.
  • Find out how to $lookup documents from another collection and add them into your pipeline.
  • Going beyond just aggregation and restructuring your data’s schema with Reschema.
  • Turn your data into views, spreadsheets and charts with Aggregations.

Who this MongoDB course is for

  • Students who have completed MongoDB 101 and 201 want to learn intermediate MongoDB concepts
  • Students switching from SQL or relational databases to MongoDB

A couple of prerequisites

For the exercises in this course, you’ll need to access a MongoDB database and Studio 3T.

  • In case you don’t have a MongoDB database yet, here’s how you can set up a free MongoDB Atlas cluster.
  • Studio 3T is the GUI and IDE for MongoDB that we use throughout the MongoDB course. It’s available for Windows, macOS, and Linux and you can download it here.

Happy MongoDB aggregating!

Begin with Building a Basic Aggregation

Course Content

Expand All
Building a Basic Aggregation 4 Topics | 1 Quiz
Expand
Lesson Content
0% Complete 0/4 Steps
Exercise 1: Filtering the documents in the aggregation pipeline
Exercise 2: Grouping the documents in the aggregation pipeline
Exercise 3: Sorting the documents in the aggregation pipeline
Exercise 4: Adding processing options to the aggregation
Building a Basic Aggregation: Test your skills
Introducing the Aggregation Editor 4 Topics | 1 Quiz
Expand
Lesson Content
0% Complete 0/4 Steps
Exercise 1: Importing an aggregate statement into the Aggregation Editor
Exercise 2: Replace a field in the aggregation pipeline
Exercise 3: Reorder the fields in the aggregation pipeline
Exercise 4: Changing the sort order in the aggregation pipeline
Introducing the Aggregation Editor: Test your skills
Working with Arrays in the Aggregation Pipeline 4 Topics | 1 Quiz
Expand
Lesson Content
0% Complete 0/4 Steps
Exercise 1: Using expression operators to filter input documents
Exercise 2: Unwinding an array to create individual documents
Exercise 3: Grouping array values and generating a document count for each group
Exercise 4: Writing pipeline results to a new collection
Working with Arrays in the Aggregation Pipeline: Test your skills
Adding Lookup Data to the Aggregation Pipeline 4 Topics | 1 Quiz
Expand
Lesson Content
0% Complete 0/4 Steps
Exercise 1: Adding lookup data to the aggregation pipeline
Exercise 2: Converting string values in one of the lookup fields to integers
Exercise 3: Adding a computed ratio field based on the converted lookup field
Exercise 4: Limiting the number of returned documents
Adding Lookup Data to the Aggregation Pipeline: Test your skills
Working with Reschema for MongoDB 4 Topics | 1 Quiz
Expand
Lesson Content
0% Complete 0/4 Steps
Exercise 1: Setting up a reschema unit that includes lookup data
Exercise 2: Defining a target collection in the reschema unit
Exercise 3: Adding and scheduling a task to create the target collection
Exercise 4: Running an aggregate statement against the target collection
Working with Reschema for MongoDB: Test your skills
Reporting with Studio 3T Aggregations 3 Topics | 1 Quiz
Expand
Lesson Content
0% Complete 0/3 Steps
Exercise 1: Creating a view based on an aggregation query
Exercise 2: Exporting a collection as a .csv file for use by a third-party tool
Exercise 3: Visualizing collection data in MongoDB Charts
Reporting with Studio 3T Aggregations: Test your skills
Course Extras
  • Course Home Expand All
    Building a Basic Aggregation
    4 Topics | 1 Quiz
    Exercise 1: Filtering the documents in the aggregation pipeline
    Exercise 2: Grouping the documents in the aggregation pipeline
    Exercise 3: Sorting the documents in the aggregation pipeline
    Exercise 4: Adding processing options to the aggregation
    Building a Basic Aggregation: Test your skills
    Introducing the Aggregation Editor
    4 Topics | 1 Quiz
    Exercise 1: Importing an aggregate statement into the Aggregation Editor
    Exercise 2: Replace a field in the aggregation pipeline
    Exercise 3: Reorder the fields in the aggregation pipeline
    Exercise 4: Changing the sort order in the aggregation pipeline
    Introducing the Aggregation Editor: Test your skills
    Working with Arrays in the Aggregation Pipeline
    4 Topics | 1 Quiz
    Exercise 1: Using expression operators to filter input documents
    Exercise 2: Unwinding an array to create individual documents
    Exercise 3: Grouping array values and generating a document count for each group
    Exercise 4: Writing pipeline results to a new collection
    Working with Arrays in the Aggregation Pipeline: Test your skills
    Adding Lookup Data to the Aggregation Pipeline
    4 Topics | 1 Quiz
    Exercise 1: Adding lookup data to the aggregation pipeline
    Exercise 2: Converting string values in one of the lookup fields to integers
    Exercise 3: Adding a computed ratio field based on the converted lookup field
    Exercise 4: Limiting the number of returned documents
    Adding Lookup Data to the Aggregation Pipeline: Test your skills
    Working with Reschema for MongoDB
    4 Topics | 1 Quiz
    Exercise 1: Setting up a reschema unit that includes lookup data
    Exercise 2: Defining a target collection in the reschema unit
    Exercise 3: Adding and scheduling a task to create the target collection
    Exercise 4: Running an aggregate statement against the target collection
    Working with Reschema for MongoDB: Test your skills
    Reporting with Studio 3T Aggregations
    3 Topics | 1 Quiz
    Exercise 1: Creating a view based on an aggregation query
    Exercise 2: Exporting a collection as a .csv file for use by a third-party tool
    Exercise 3: Visualizing collection data in MongoDB Charts
    Reporting with Studio 3T Aggregations: Test your skills
    Course Extras
  • Studio 3T

    MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

    Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

    Education

    • Free MongoDB Tutorials
    • Connect to MongoDB
    • Connect to MongoDB Atlas
    • Import Data to MongoDB
    • Export MongoDB Data
    • Build Aggregation Queries
    • Query MongoDB with SQL
    • Migrate from SQL to MongoDB

    Resources

    • Feedback and Support
    • Sales Support
    • Knowledge Base
    • FAQ
    • Reports
    • Case Studies
    • White Papers
    • Testimonials
    • Discounts

    Company

    • About Us
    • Blog
    • Careers
    • Legal
    • Press
    • Privacy Policy
    • EULA

    © 2022 3T Software Labs GmbH. All rights reserved.

    • Privacy Policy
    • Cookie settings
    • Impressum
    When you click "Accept", you are agreeing to cookies being on your device. They may improve site navigation, site usage analysis, or the relevance of messages. It is up to you which cookies are enabled. Read our Privacy Policy.
    Manage cookies
    Accept
    ✕

    Privacy Preference Center

    A cookie is a small file of letters and numbers that is downloaded on to your computer when you visit a website. Cookies are used by many websites and can do a number of things, eg remembering your preferences, recording what you have put in your shopping basket, and counting the number of people looking at a website. In the form below you can choose which cookies, except for essential cookies, to allow or disable.

    Accept all cookies

    Manage consent preferences

    Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

    Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

    Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

    Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

    Accept selected