35 Aggregation Example 17 $sum and $group - MongoDB Aggregation Tutorial

preview_player
Показать описание

🔥 Discord community

🔥 Udemy Profile

SUBSCRIBE IN SOCIAL NETWORKS

Email 📧 in case you want to send me a notice
Рекомендации по теме
Комментарии
Автор

In this course I teach all what you need to know about MongoDB and I start from the very beginning and explain how MongoDB works behind the scenes.
More than 7500 students have already joined it. Go ahead and join too! Happy Learning!

Bogdan_Stashchuk
Автор

Thank you so much very straightforward

mohammedali-wroz
Автор

Thanks for the video, you helped a lot !

kingakonieczna
Автор

How can I count the difference of peoples have 30 > and <30. like at 1:33, 3 peoples have age less than 30, but 11 people having age of 30+, So the answer should be 11-3=8.
How can I find this result?

techsec
Автор

what if i want to recieve both what age they are and at the same time accumulate their favourite fruit - what i want is something like {age: 53, count: 20, favouriteFruit: {apples: 12, bananas: 2, raspberrys: 6 }

Nerous
Автор

Good video, is threre any difference between:
1. count: { $count: { $sum: 1} }
2. count: { $count: { } }
?

They both group and count the documents.

lzh
Автор

Hi Coding Tutorials. I've already mentioned how great and helpful your series are! I have a question about sum: How can the sum of a field in all documents be found? For example: the amount of kids each person has, and I want to know how many kids there are. I don't know how to do this with $group, and also not how to do it without... Tnx!

MrNhde