Looks like a project of mine will be utilizing MongoDB, and this is just a whole new ball game to me... I cant for the life of me get my head around the aggregate function, all the examples I find seem to be off my learning style.
Assuming I have SOME_ID and SOME_COUNT in a "document" or a row, how would I write the equivelent:
Code:select some_id, sum(some_count) from myCollection group by some_id




Reply With Quote


Bookmarks