Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate summary for team 1 each week #201

Open
YanLiang1102 opened this issue Oct 30, 2017 · 2 comments
Open

Generate summary for team 1 each week #201

YanLiang1102 opened this issue Oct 30, 2017 · 2 comments

Comments

@YanLiang1102
Copy link
Contributor

YanLiang1102 commented Oct 30, 2017

db.verbdictionaries.aggregate([ {"$group" : {_id:"$userName", count:{$sum:1}}} ])
db.sourcedictionaries.aggregate([ {"$group" : {_id:"$userName", count:{$sum:1}}} ])

@YanLiang1102
Copy link
Contributor Author

db.sourcedictionaries.find({ "taggingTime" : {"$gte": new Date("2017-12-01T00:00:00.000Z")},"userName":"" }).count()

@YanLiang1102
Copy link
Contributor Author

YanLiang1102 commented Mar 7, 2018

db.sourcedictionaries.aggregate( [
{ $match : {"taggingTime":{"$gte": new Date("2018-03-01T00:00:00.000Z")}} },
{ $group : { _id : "$userName",count:{$sum:1}} } ] )


group people's performance with some specific time range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant