🔥Mongodb Aggregation Tutorial | Aggregation Functions in Mongodb | Mongodb Tutorial | Simplicode

  Рет қаралды 49,750

SimpliCode

SimpliCode

Күн бұрын

Пікірлер: 20
@sakarienuh6293
@sakarienuh6293 Жыл бұрын
TIP: whenever you open a bracket/parenthesis always immediately close it without writing anything in first. Open the bracket > then close it> then go back to the closed bracket/parenthesis and write in it. in that way you wont confuse with how many brackets you need to close after u write everything and in the video thats why there was an error in the first example because there was one parenthesis missing.
@faroozrimaaz7092
@faroozrimaaz7092 Жыл бұрын
Underrated channel...he deserves million..very good explanation man..
@SimplicodeOfficial
@SimplicodeOfficial Жыл бұрын
We are glad that you have enjoyed your learning experience with us : )
@VidyashreeMayee
@VidyashreeMayee 8 ай бұрын
Nice explanation... it's very useful to everyone ☺️
@antonixff3663
@antonixff3663 11 ай бұрын
my man. thanks
@paritoshpaul6842
@paritoshpaul6842 Жыл бұрын
Good detail, thanks men..!
@crysto123
@crysto123 Жыл бұрын
Above code for list of department id @13:02 the output i m getting is { _id:department_id } not the whole list of ids..what m i doing wrong?
@RaviRavi-ne9xw
@RaviRavi-ne9xw 10 күн бұрын
U should use like this { _id : "%department_id" }
@IrinaAilen
@IrinaAilen Жыл бұрын
thanks you very much dude
@raghu4199
@raghu4199 Жыл бұрын
where can we get the data that you are using?
@abhinavvaabhinav2856
@abhinavvaabhinav2856 Жыл бұрын
Super Class
@suryatejess-u7l
@suryatejess-u7l 3 ай бұрын
7:51 7:08
@hooperholic6973
@hooperholic6973 Жыл бұрын
Hi, how do you find the entry of department ID that occurs more than once
@SimplicodeOfficial
@SimplicodeOfficial Жыл бұрын
To find the entry of a department ID that occurs more than once in MongoDB, you can use the aggregation framework and the $group operator. Here's an example query: db.collection_name.aggregate([ { $group: { _id: "$department_id", count: { $sum: 1 } } }, { $match: { count: { $gt: 1 } } } In this query, we first group the documents in the collection by the department_id field using the $group operator. We create a new field called count using the $sum operator to count the number of documents in each group. Then, we use the $match operator to filter out the groups where the count is less than or equal to 1. The resulting documents will have the _id field equal to the department_id and the count field equal to the number of times that department_id appears in the collection.
@likithathyagaraju1842
@likithathyagaraju1842 Жыл бұрын
Brother,iam getting repeated 2 times output for match command
@suryatejess-u7l
@suryatejess-u7l 3 ай бұрын
7:08
@krish3d385
@krish3d385 Жыл бұрын
This is an explanation given like a amateur. I appreciate the efforts though. You did lots of syntax issue and you did not cover how you fixed it. Well professional like me can take advantage over internet but think about beginners. And you missed lots of other serious points.
@youssef944
@youssef944 11 ай бұрын
what're u doing here?
@krish3d385
@krish3d385 11 ай бұрын
@@youssef944 wasted time, still wasting time. KZbin algorithm made me do it. Dont call me out. Do something meaningfull.
@youssef944
@youssef944 11 ай бұрын
@@krish3d385 What
How To Optimize Largest Contentful Paint
7:24
DebugBear
Рет қаралды 27 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
MongoDB Schema Design Best Practices
50:39
Joe Karlsson
Рет қаралды 175 М.
Aggregation | MongoDB | Tutorial 10
12:45
Giraffe Academy
Рет қаралды 269 М.
Complete MongoDB aggregation pipeline course
1:58:14
Hitesh Choudhary
Рет қаралды 66 М.
MongoDB in 18 Minutes - Intro to MongoDB
17:42
Caleb Curry
Рет қаралды 328 М.
MongoDB Crash Course
29:59
Web Dev Simplified
Рет қаралды 735 М.
Learn MongoDB in 1 Hour 🍃
1:00:00
Bro Code
Рет қаралды 1,2 МЛН
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 241 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН