headlines
PQL functions
PQL functions work very much like their counterparts in SQL.
Syntax
The syntax for PQL functions is as follows:
return function(argument)
Functions
PQL supports the following functions:
|
Function |
Number of arguments |
Description |
|
3 |
Limits the length of a string. |
|
|
3 |
Returns timestamps for which history is available. |
|
|
2 |
Returns the nth child node. |
|
|
Any number |
Returns the first argument from a list, that is not NULL. Equivalent to nvl. |
|
|
1 |
Returns the total number of items. |
|
|
Any number |
Returns the date of creation. |
|
|
2 |
Converts the output to date format, such as |
|
|
1 |
Converts all characters in a string to lower case. |
|
|
1 |
Selects the first leaf in a tree, such as the first interface from
|
|
|
2 |
Converts the output to a floating number, such as |
|
|
2 |
Returns a number that is formatted to the specified number of decimal places,
such as: |
|
|
Any number |
Indicates whether or not a node contains history information. |
|
|
Any number |
Returns a list of previous values over time, if the leaf node had more than one value in the past. |
|
|
1 |
Returns the unique ID of the node. Every node, sub-node, and leaf node have a unique identifing number which this function returns. |
|
|
2 |
Converts the output to int format, such as |
|
|
2 |
Converts the output to an integer, such as |
|
|
2 |
Traverses a tree and concatenates all values with a provided string, or selects data from two or more paths and joins the data to make the result complete. |
|
|
1 |
Returns all characters in a string in lower case. |
|
|
1 |
Returns the maximum value. |
|
|
1 |
Returns the mean value. |
|
|
1 |
Returns the minimum value. |
|
|
1 |
Returns the number of child nodes. |
|
|
Any number |
Returns the first argument from a list, that is not NULL. Equivalent to coalesce. |
|
|
Any number |
Returns the date the node was last observed. |
|
|
Any number |
Returns the parent node. |
|
|
1 |
Returns the path to a node. |
|
|
Any number |
Returns raw history samples without any bucketing. |
|
|
2 |
Converts the output to string format, such as |
|
|
3 |
Returns the first N characters of a string. |
|
|
1 |
Returns the sum of a set of values. |
|
|
2 |
Converts the output to timestamp format, such as |
|
|
2 |
Converts the output to timestamp format, such as |
|
|
1 |
Converts all characters in a string to upper case. |
|
|
1 |
Returns all characters in a string in upper case. |
|
|
2 |
Combines 2 sets of historical data from unrelated parent nodes. |

