Page History
...
Panel | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
AVERAGEUse this function to determine the average (arithmetic mean) of a list or collection. The AVG function has two syntax forms: the collection form and the list form. You can use the collection form to determine the average value of all occurrences of an attribute. The list form is used to determine the average value of a set of different attributes. Collection form syntax
List form syntax
Return types
The function returns UNKNOWN if one or more values are UNKNOWN. Examples Suppose the following domain model.
If you want to determine the average bidding on the current residence:
If you want to determine the average amount of the appraisal value, the asking price and the mortgage of the current residence:
|
Panel | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
MINUse this function to determine the minimum value of a list or collection. The MIN function has two syntax forms: the collection form and the list form. You can use the collection form to determine the minimum value of all occurrences of an attribute. The list form is used to determine the minimum value of a set of different attributes. Collection form syntax
List form syntax
Examples Suppose the following domain model.
If you want to determine the lowest bidding on the current residence:
If you want to determine the smallest amount within the appraisal value, the asking price and the mortgage:
|
Panel | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
MAXUse this function to determine the maximum value of a list or collection. The MAX function has two syntax forms: the collection form and the list form. You can use the collection form to determine the maximum value of all occurrences of an attribute. The list form is used to determine the maximum value of a set of different attributes. Collection form syntax
List form syntax
Examples Suppose the following domain model.
If you want to determine the highest bidding on the current residence:
If you want to determine the highest amount within the appraisal value, the asking price and the mortgage:
|
Panel | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
COUNTUse this function to retrieve the number of instances for the specified entities or attributes. Syntax
Return type
Examples Suppose the following data model.
|