Answers for "mongodb-query-to-sum-specific-fields"

0

mongodb-query-to-sum-specific-fields

> db.getSumOfFieldsDemo.aggregate([ { $match: { Status: "Active" } }, { $group: { _id: "$Customer_Id", TotalSum: { $sum: "$Price" } } } ]);
Posted by: Guest on May-24-2021

Code answers related to "mongodb-query-to-sum-specific-fields"

Browse Popular Code Answers by Language