MongoDB query Use map-reduce and aggregation frameworks to find the following information:
-
Average weight and height of people in the database, grouped by gender (so separate values for men and women)
-
Total amount of money left on credit cards of people in database, grouped by currency
-
List of unique jobs
-
Average, minimum and maximum BMI (weight/height^2) grouped by nationality
-
Average and total amount of money left on credit cards of polish women, grouped by currency