on 10-29-2015 12:06 PM
Hello all,
i'm sure this is a very simple question, but i can't get the answer anywhere...
How would you code an xsds query in order to get the max value of a table?
for example:
"SELECT MAX(AGE) FROM PERSON"
I've tried some things like:
personEntity.$query().$max(personEntity.age)
Could sombody give me a clue? I've been looking for guides, but they don't specify the use, they just say there are these operators available...
Thanks
Hello Luis.
personEntity.$query().$project({}).$addFields({ maxAge: personEntity.age.$max() });
Best Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.