hi,
I have tried this but in my case it is not working
I am sharing my data structure i am using MongoDB what i need to do is fetch the total value in course name. Course name is my column and my fields are in array format it stores the multiple value like this -:
[{“total”:10000,“_id”:“Master of Business Administration”}]
[{“total”:446,“_id”:“Master of Business Administration”},{“total”:10850,“_id”:“Master of Computer Application”}]
I need to fetch the total value in the array and sum up the value to find total student registered . how do i calculate it
hi,
Thanks for replying. i have wrote the query but i am stuck somwhere. i am not able to add the value in the mutlple array . i want my output like this -:
[{“total”:10000}]
[{“total”:11296}]
Nope the screen shot i mention above is not the output this is my column where i need to find the total value of the coursename . I need to to sum up all the total value . yes i am new to mongo db
Login or sign up disabled while the site is in read only mode