coalesceNums static method

DoubleField coalesceNums(
  1. List values
)

Create sql statement with function COALESCE() function applied for several values, values may be int - double - NumField - IntField - DoubleField.

COALESCE() is used to get first not null value of values, if all values are null, it returns null.

Implementation

static DoubleField coalesceNums(List values) =>
    _buildCollectionNumValuesFunction('COALESCE', values);