CQL Functions Reference List
Overview
The following living list documents Cinchy Query Language functions. Select the function name to see its individual documentation page. Please note that some CQL functions are"in progress" for support on PGSQL deployments. Please check back regularly for the updated list.
CQL functions
Function Name | Description | TSQL Support | PGSQL Support |
---|---|---|---|
@@ROWCOUNT | Returns the number of rows affected by the last statement executed. | ✅ Supported | 🚫 Not Supported |
@cinchy_row_id | The @cinchy_row_id function returns the cinchy ID of the last-inserted row. | ✅ Supported | 🚫 Not Supported |
ABS | Returns the absolute (positive) value of the specified numeric expression. | ✅ Supported | ✅ Supported |
ACOS | Returns the angle, in radians, whose cosine is the specified float expression. | ✅ Supported | 🚫 Not Supported |
APPROX_COUNT_DISTINCT | Returns the approximate number of non-null values in a group. | ✅ Supported | 🚫 Not Supported |
ASCII | Returns the ASCII code value of the leftmost character of a character expression. | ✅ Supported | ✅ Supported |
ASIN | Returns the angle, in radians, whose sine is the specified float expression. | ✅ Supported | 🚫 Not Supported |
ATAN | Returns the angle, in radians, whose tangent is a specified float expression. | ✅ Supported | 🚫 Not Supported |
ATN2 | Returns the angle, in radians, between the positive x-axis and the ray from the origin to the point (y, x), where x and y are the values of the two specified float expressions. | ✅ Supported | ✅ Supported |
AVG | ✅ Supported | ✅ Supported | |
CAST | Used with CONVERT to convert an expression of one data type to another. | ✅ Supported | ✅ Supported |
CEILING | Returns the smallest integer greater than, or equal to, the specified numeric expression. | ✅ Supported | ✅ Supported |
CHAR | Converts an int between 0 to 255 to a character value. | ✅ Supported | 🚫 Not Supported |
CHARINDEX | Searches for one character expression inside another character string. If found, the function will return the starting position of the first expression. | ✅ Supported | ✅ Supported |
CHECKSUM_AGG | Returns the checksum value of the numeric columns specified by the query, allowing you to detect data changes. It ignores null values. | ✅ Supported | 🚫 Not Supported |
CHOOSE | Returns an item at the specified index from a list of values in Cinchy. | ✅ Supported | 🚫 Not Supported |
CONCAT | Concatenates two or more string values one after the other. | ✅ Supported | ✅ Supported |
CONCAT_WS | ✅ Supported | ✅ Supported | |
CONTAINS | A predicate used in the WHERE clause of a CQL SELECT statement to perform full-text search on full-text indexed columns containing character-based data types. | ✅ Supported | 🚫 Not Supported |
CONVERT | Used with CAST to convert an expression of one data type to another. | ✅ Supported | ✅ Supported |
COS | Returns the trigonometric cosine of the specified angle - measured in radians - in the specified expression. | ✅ Supported | ✅ Supported |
COT | Returns the trigonometric cotangent of the specified angle - in radians - in the specified float expression. | ✅ Supported | ✅ Supported |
COUNT | ✅ Supported | ✅ Supported | |
COUNT_BIG | Returns the number of items found in a group. It differs from the COUNT function in that it returns `bigint` values. | ✅ Supported | ✅ Supported |
CRYPT_GEN_RANDOM | Returns a cryptographic, randomly-generated hexadecimal number with a specific length of bytes. | ✅ Supported | 🚫 Not Supported |
CUME_DIST | Calculates the relative position of a specified value in a group of values. | ✅ Supported | ✅ Supported |
CURRENT_TIMEZONE | Returns the timezone of the current server or instance. | ✅ Supported | 🚫 Not Supported |
CurrentUserID | ✅ Supported | ✅ Supported | |
CurrentUsersGroup | ✅ Supported | 🚫 Not Supported | |
DATEADD | Adds a specified number value to a specified DATEPART of an input date value, and then returns that modified value. | ✅ Supported | ✅ Supported |
DATEDIFF | Returns the count of the specified DATEPART boundaries crossed between the specified STARTDATE and ENDDATE. | ✅ Supported | 🚫 Not Supported |
DATEDIFF_BIG | Returns the count of the specified DATEPART boundaries crossed between the specified STARTDATE and ENDDATE. | ✅ Supported | 🚫 Not Supported |
DATEFROMPARTS | Returns a date value that maps to the specified year, month, and day values. | ✅ Supported | 🚫 Not Supported |
DATENAME | Returns a character string representing the specified DATEPART of the specified date. | ✅ Supported | 🚫 Not Supported |
DATEPART | Returns an integer representing the specified DATEPART of the specified date. | ✅ Supported | 🚫 Not Supported |
DATETIME2FROMPARTS | Returns a datetime2 value for the specified date and time arguments. | ✅ Supported | 🚫 Not Supported |
DATETIMEFROMPARTS | Returns a DATETIME value for the specified date and time arguments. | ✅ Supported | 🚫 Not Supported |
DATETIMEOFFSETFROMPARTS | Returns a DATETIMEOFFSET value for the specified date and time arguments. | ✅ Supported | 🚫 Not Supported |
DAY | Returns an integer that represents the day (day of the month) of the specified date. | ✅ Supported | ✅ Supported |
DEGREES | Returns the corresponding angle, in degrees, for an angle specified in radians. | ✅ Supported | ✅ Supported |
DELETE | ✅ Supported | ✅ Supported | |
DENSE_RANK | Returns the rank of each row within a result set partition, with no gaps in the ranking values. The rank of a specific row is one plus the number of distinct rank values that come before that specific row. | ✅ Supported | ✅ Supported |
DIFFERENCE | Returns an integer value measuring the difference between the SOUNDEX () values of two different character expression strings. | ✅ Supported | 🚫 Not Supported |
Draft(Column) | ✅ Supported | ✅ Supported | |
ELSE | ✅ Supported | ✅ Supported | |
EOMONTH | Returns the last day of the month containing a specified date, with an optional offset. | ✅ Supported | 🚫 Not Supported |
Exec | ✅ Supported | ✅ Supported | |
ExecuteSavedQuery | ✅ Supported | ✅ Supported | |
EXP | Returns the exponential value of the specified float expression. | ✅ Supported | ✅ Supported |
FIRST_VALUE | ✅ Supported | ✅ Supported | |
FLOOR | Returns the largest integer less than or equal to the specified numeric expression. | ✅ Supported | ✅ Supported |
FORMAT | Returns a value formatted with the specified format. | ✅ Supported | ✅ Supported |
FREETEXT | Provides the ability to search for a matched term based on the meaning of the terms as opposed to the exact character string. | ✅ Supported | 🚫 Not Supported |
GETDATE | ✅ Supported | ✅ Supported | |
GetLastModifiedBy | ✅ Supported | ✅ Supported | |
GETUTCDATE | ✅ Supported | ✅ Supported | |
GROUPING | ✅ Supported | 🚫 Not Supported | |
GROUPING_ID | ✅ Supported | 🚫 Not Supported | |
HASHBYTES | ✅ Supported | 🚫 Not Supported | |
IIF | Returns one of two values which is depending on if the Boolean expression evaluates TRUE or FALSE in the Cinchy. | ✅ Supported | 🚫 Not Supported |
IN | ✅ Supported | 🚫 Not Supported | |
ISDATE | Checks an expression to see if it's correct. | ✅ Supported | 🚫 Not Supported |
ISJSON | Tests whether a string contains valid JSON. | ✅ Supported | 🚫 Not Supported |
ISNULL | ✅ Supported | 🚫 Not Supported | |
ISNUMERIC | ✅ Supported | 🚫 Not Supported | |
IsValidDetailed (Geometry) | Returns a message that can help to identify problems with a spatial object that isn't valid. | ✅ Supported | 🚫 Not Supported |
JSON_MODIFY | Updates the value of a property in a JSON string and returns the updated JSON string. | ✅ Supported | 🚫 Not Supported |
JSON_QUERY | Extracts an object or an array from a JSON string. | ✅ Supported | 🚫 Not Supported |
JSON_VALUE | Extracts a scalar value from a JSON string. | 🚫 Not Supported | 🚫 Not Supported |
LAG | ✅ Supported |