Informix
Informix cardinality ( string_expression ) Returns the number of elements in a collection column (SET, MULTISET, LIST). char_length ( string_expression ) Returns the number of logical characters in "string_expression". The number of logical characters can be distinct from the number of bytes in some East Asian locales. concat ( string_expression1 , string_expression2 ) Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_expression2". Example: concat ( [Sales (query)].[Sales staff].[First name], [Sales (query)].[Sales staff].[Last name] ) Result: Returns the first name and family name; e.g., Bob Smith. date ( string_expression|date_expression|integer_expression ) Returns the date value of "string_expression", "date_expression", or "integer_expression". day ( date_expression ) Returns an integer that represents the day of the month (1-31). extend ( date_expression , ' { ' year to second ' } ' ) Adjusts the precision of a datetime or date expression. The expression cannot be a quoted string representation of a date value. If you do not specify first and last qualifiers, the default qualifiers are year to fraction (3). If the expression contains fields that are not specified by the qualifiers, the unwanted fields are discarded. If the first qualifier specifies a larger (more significant) field than what exists in the expression, the new fields are filled in with values returned by the current function. If the last qualifier specifies a smaller (less significant) field than what exists in the expression, the new fields are filled in with constant values. A missing month or day field is filled in with 1, and missing hour to fraction fields are filled in with 0. Example: extend ( some_date_column , { year to second } ) hex ( integer_expression ) Returns the hexadecimal encoding of "integer_expression". initcap ( string_expression ) Returns "string_expression" with the first letter of each word in uppercase and all other letters in lowercase. A word begins after any character other than a letter. Thus, in addition to a blank space, symbols such as commas, periods, and colons can introduce a new word. length ( string_expression ) Returns the number of bytes in "string_expression", not including any trailing blank spaces. For byte or text "string_expression", length returns the full number of bytes, including any trailing blank spaces. lpad ( string_expression1 , integer_expression , string_expression2 ) Returns "string_expression1" left-padded by "string_expression2" to the total number of characters specified by "integer_expression". The sequence of "string_expression2" occurs as many times as necessary to make the return string the length specified by "integer_expression". mdy ( integer_expression1 , integer_expression2 , integer_expression3 ) Returns a type date value with three expressions that evaluate to integers that represent the month (integer_expression1), day (integer_expression2), and year (integer_expression3). month ( date_expression ) Returns an integer corresponding to the month portion of "date_expression". nvl ( expression1 , expression2 ) Returns the value of "expression1" if "expression1" is not NULL. If "expression1" is NULL, then returns the value of "expression2". Example: nvl ( [Unit sale price] , [Unit price] ) Result: Returns the unit sale price, or returns the unit price if the unit sale price is NULL. octet_length ( string_expression ) Returns the number of bytes in "string_expression", including any trailing spaces. replace ( string_expression1 , string_expression2 [ , string_expression3 ] ) Returns "string_expression1" in which every occurrence of "string_expression2" is replaced by "string_expression3". If you omit the "string_expression3" option, every occurrence of "string_expression2" is omitted from the return string. Example: replace ( [Sales (query)].[Products].[Product line code] , - ) Result: Returns all product line codes without the character "-" round ( numeric_expression [ , integer_expression ] ) Returns the rounded value of "numeric_expression". If you omit "integer_expression", the value is rounded to zero digits or to the units place. The digit range of 32 (+ and -) refers to the entire decimal value. Rounding takes place before data formatting is applied. Example: round (125, -1) Result: 130 rpad ( string_expression1 , integer_expression , string_expression2 ) Returns "string_expression1" right-padded by "string_expression2" to the total number of characters specified by "integer_expression". The sequence of "string_expression2" occurs as many times as necessary to make the return string the length specified by "integer_expression". substr ( string_expression , integer_expression1 [ , integer_expression2 ] ) Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters. The first character in "string_expression" is at position 1. If you omit "integer_expression2", returns the substring of "string_expression" that starts at position "integer_expression1" and ends at the end of "string_expression". Example: substr ( [Sales (query)].[Sales staff].[Position code], 3 , 5 ) Result: Returns characters 3 to 7 of the position codes. to_char ( date_expression [ , string_expression ] ) Returns the character string "date_expression" with the specified "string_expression" formatting. You can use this function only with built-in data types. to_date ( string_expression1 , string_expression2 ) Returns "string_expression1" as a date according to the date format you specify in "string_expression2". If "string_expression1" is NULL, then a NULL value is returned. weekday ( date_expression ) Returns an integer that represents the day of the week of "date_expression". Zero (0) represents Sunday, one (1) represents Monday, and so on. year ( date_expression ) Returns a four-digit integer that represents the year of "date_expression".
Informix Math log10 ( numeric_expression ) Returns the logarithm of "numeric_expression" to base 10. logn ( numeric_expression ) Returns the natural logarithm of "numeric_expression". root ( numeric_expression1 [ , numeric_expression2 ] ) Returns the root value of "numeric_expression1". Requires at least one numeric argument (the radians argument). If only "numeric_expression1" is supplied, 2 is used as a default value for "numeric_expression2". Zero cannot be used as the value of "numeric_expression2". trunc ( date_expression , string_expression ) Truncates "date_expression" using the format specified by "string_expression". For example, if "string_expression" is 'year', then "date_expression" is truncated to the first day of the year. trunc ( numeric_expression [ , integer_expression ] ) Returns the truncated value of "numeric_expression". If you omit "integer_expression", then "numeric_expression" is truncated to zero digits or to the unit’s place. The digit limitation of 32 (+ and -) refers to the entire decimal value.
Informix Trigonometry acos ( numeric_expression ) Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression". asin ( numeric_expression ) Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression". atan ( numeric_expression ) Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression". atan2 ( numeric_expression1 , numeric_expression2 ) Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_expression2", respectively, in radians. The arctangent is the angle whose tangent is "numeric_expression1". cos ( numeric_expression ) Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians. sin ( numeric_expression ) Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians. tan ( numeric_expression ) Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.