Category: 5 SPL Learning Material
SPL: TopN and TopN in group
TopN query is to look up the first Ns / last Ns from the data. TopN query can not only directly get a value, but also inquire the detailed information of the record where TopN is located, and sometimes it also looks for the row number of TopN. Additionally, TopN query may also be used in groups to query the first Ns / last Ns within the group.
...
5 SPL Learning Material
2023-05-18
SPL: taking the record of maximum values/maximum values in group
Sometimes, we don’t care about what the exact maximum value is, we are rather concerned about the record in which the maximum value is located. For example, look up the student ID with the highest math score, select the order with the highest monthly sales, and so on.
...
5 SPL Learning Material
2023-05-16







