Hi,
I want to use $min while doing $find on an entity in my xsjs.
Here is the sample of $find:
var caseKeys = CASE_MASTER.$findAll({
"CASE_NUMBER": caseNumbers[i]
});
Here CASE_MASTER is a table & CASE_NUMBER is a primary key.
CASE_MASTER contains various other fields too.
Now, how can I retrieve records based on $max values of a particular field.
Say, I want all the CASE_NUMBERs or all the records whose has max Salary.
Any help is highly appreciated.
Thanks