Aggregation pipeline

Report a typo


Suppose we have a collection called employees that contains documents with the following fields:

employee_id, first_name, last_name, department and salary.

We want to find the average salary for employees in each department and sort the result in a descending order.

Select one option from the list
___

Create a free account to access the full topic