Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to use $min in $find/$findAll in cds queries xsjs

$
0
0

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


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>