Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to find max value of a field in mongoDB?

Hi,
I want to find max value of a field total_marks in mongoDB. How to do it?
MongoDB equivalent of: select max(total_marks) from table;
Can it be done using tMongoDBInput component? 
Labels (2)
2 Replies
Anonymous
Not applicable
Author

In order to have max, you need to use groupby clause in your sql query..., you can get the max value for specific column without using talend components...
- in talend you have tAggregatexxx component(s) which can also give you max value based on the aggregate column...
what is the problem you are facing and what is your current design?
vaibhav
Anonymous
Not applicable
Author

HI vaibhav.
MongoDb is a no-Sql database. So was not able to figure out how to find the max value.
But i figured out that i can sort the input recieved and limit no of records to 1 to get what i needed.
Thanks!