- Shuffle
Toggle OnToggle Off
- Alphabetize
Toggle OnToggle Off
- Front First
Toggle OnToggle Off
- Both Sides
Toggle OnToggle Off
Front
How to study your flashcards.
Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key
Up/Down arrow keys: Flip the card between the front and back.down keyup key
H key: Show hint (3rd side).h key
![]()
PLAY BUTTON
![]()
PLAY BUTTON
![]()
936 Cards in this Set
- Front
- Back
- 3rd side (hint)
|
_firstFromSet
|
Returns the first members found in the set up to "numeric_expression_maximum" + "numeric_ expression_overflow". If "numeric_expression_maximum" + "numeric_expression_overflow" is exceeded, then only the maximum number of members are returned. For a set that has only a few members more than the specified numeric_expression_maximum, the numeric_expression_overflow allows the small set of extra members to be included. If the set has more members than the overflow allows, then only the numeric_expression_maximum members will be returned.
|
Block Functions |
|
_remainderSet
|
Returns the set containing "member_expression" when the size of "set_expression" is greater than "numeric_expression"; i.e., a new member will be generated if the number of members in "set_expression" is larger than the specified "numeric_expression".
|
Block Functions |
|
_add_days
|
Returns the date or datetime, depending on the format of "date_expression", that results from adding "integer_expression" days to "date_expression".
|
Business Date/Time Functions |
|
_add_months
|
Returns the date or datetime, depending on the format of "date_expression", that results from the addition of "integer_expression" months to "date_expression".
|
Business Date/Time Functions |
|
_add_years
|
Returns the date or datetime, depending on the format of "date_expression", that results from the addition of "integer_expression" years to "date_expression".
|
Business Date/Time Functions |
|
_age
|
Returns a number that is obtained from subtracting "date_expression" from today's date. The returned value has the form YYYYMMDD, where YYYY represents the number of years, MM represents the number of months, and DD represents the number of days.
|
Business Date/Time Functions |
|
_day_of_week
|
Returns the day of week (1 to 7), where 1 is the first day of the week as indicated by the second parameter (1 to 7, 1 being Monday and 7 being Sunday). Note that in ISO 8601 standard, a week begins with Monday being day 1.
|
Business Date/Time Functions |
|
_day_of_year
|
Returns the day of year (1 to 366) in "date_ expression". Also known as Julian day.
|
Business Date/Time Functions |
|
_days_between
|
Returns a positive or negative number representing the number of days between "date_expression1" and "date_expression2". If "date_expression1" < "date_expression2", then the result will be a negative number.
|
Business Date/Time Functions |
|
_days_to_end_of_month
|
Returns a number representing the number of days remaining in the month represented by "date_expression".
|
Business Date/Time Functions |
|
_first_of_month
|
Returns a date or datetime, depending on the argument, by converting "date_expression" to a date with the same year and month but with the day set to 1.
|
Business Date/Time Functions |
|
_last_of_month
|
Returns a date or datetime, depending on the argument, that is the last day of the month represented by "date_expression".
|
Business Date/Time Functions |
|
_make_timestamp
|
Returns a timestamp constructed from "integer_expression1" (the year), "integer_expression2" (the month), and "integer_expression3" (the day). The time portion defaults to 00:00:00.000 .
|
Business Date/Time Functions |
|
_months_between
|
Returns a positive or negative integer number representing the number of months between "date_expression1" and "date_expression2". If "date_expression1" is earlier than "date_expression2", then a negative number is returned.
|
Business Date/Time Functions |
|
_week_of_year
|
Returns the number of the week of the year of "date_expression" according to the ISO 8601 standard. Week 1 of the year is the first week of the year to contain a Thursday, which is equivalent to the first week containing January 4th. A week starts on Monday (day 1) and ends on Sunday (day 7).
|
Business Date/Time Functions |
|
_years_between
|
Returns a positive or negative integer number representing the number of years between "date_expression1" and "date_expression2". If "date_expression1" < "date_expression2" then a negative value is returned.
|
Business Date/Time Functions |
|
_ymdint_between
|
Returns a number representing the difference between "date_expression1" and "date_expression2". The returned value has the form YYYYMMDD, where YYYY represents the number of years,MM represents the number of months, and DD represents the number of days.
|
Business Date/Time Functions |
|
abs
|
Returns the absolute value of "numeric_expression". Negative values are returned as positive values.
|
Common Functions |
|
cast
|
Converts "expression" to a specified data type. Some data types allow for a length and precision to be specified. Make sure that the target is of the appropriate type and size. The following can be used for "datatype_specification": character, varchar, char, numeric, decimal, integer, smallint, real, float, date, time, timestamp, time with time zone, timestamp with time zone, and interval. When type casting to an interval type, one of the following interval qualifiers must be specified: year, month, or year to month for the year-to-month interval datatype; day, hour, minute, second, day to hour, day to minute, day to second, hour to minute, hour to second, or minute to second for the day-to-second interval datatype. Notes: When you convert a value of type timestamp to type date, the time portion of the timestamp value is ignored. When you convert a value of type timestamp to type time, the date portion of the timestamp is ignored. When you convert a value of type date to type timestamp, the time components of the timestamp are set to zero. When you convert a value of type time to type timestamp, the date component is set to the current system date. It is invalid to convert one interval datatype to the other (for instance because the number of days in a month is variable). Note that you can specify the number of digits for the leading qualifier only, i.e. YEAR(4) TO MONTH, DAY(5). Errors will be reported if the target type and size are not compatible with the source type and size.
|
Common Functions |
|
ceil
|
Returns the smallest integer that is greater than or equal to "numeric_expression".
|
Common Functions |
|
ceiling
|
Returns the smallest integer that is greater than or equal to "numeric_expression".
|
Common Functions |
|
char_length
|
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.
|
Common Functions |
|
character_length
|
Returns the number of characters in "string_expression".
|
Common Functions |
|
coalesce
|
Returns the first non-null argument (or null if all arguments are null). Requires two or more arguments in "expression_list".
|
Common Functions |
|
current_date
|
Returns a date value representing the current date of the computer that the database software runs on.
|
Common Functions |
|
current_time
|
Returns a time with time zone value, representing the current time of the computer that runs the database software if the database supports this function. Otherwise, it represents the current time of the computer that runs IBM® Cognos® BI software.
|
Common Functions |
|
current_timestamp
|
Returns a datetime with time zone value, representing the current time of the computer that runs the database software if the database supports this function. Otherwise, it represents the current time of the computer that runs IBM® Cognos® BI software.
|
Common Functions |
|
exp
|
Returns 'e' raised to the power of "numeric_expression". The constant 'e' is the base of the natural logarithm.
|
Common Functions |
|
extract
|
Returns an integer representing the value of datepart (year, month, day, hour, minute, second) in "datetime_expression".
|
Common Functions |
|
floor
|
Returns the largest integer that is less than or equal to "numeric_expression".
|
Common Functions |
|
ln
|
Returns the natural logarithm of "numeric_expression".
|
Common Functions |
|
localtime
|
Returns a time value, representing the current time of the computer that runs the database software.
|
Common Functions |
|
localtimestamp
|
Returns a datetime value, representing the current timestamp of the computer that runs the database software.
|
Common Functions |
|
lower
|
Returns "string_expression" with all uppercase characters shifted to lowercase.
|
Common Functions |
|
mod
|
Returns the remainder (modulus) of "integer_expression1" divided by "integer_expression2". "Integer_expression2" must not be zero or an exception condition is raised.
|
Common Functions |
|
nullif
|
Returns null if "expression1" equals "expression2", otherwise returns "expression1".
|
Common Functions |
|
octet_length
|
Returns the number of bytes in "string_expression".
|
Common Functions |
|
position
|
Returns the integer value representing the starting position of "string_expression1" in "string_ expression2" or 0 when the "string_expression1" is not found.
|
Common Functions |
|
power
|
Returns "numeric_expression1" raised to the power "numeric_expression2". If "numeric_expression1" is negative, then "numeric_expression2" must result in an integer value.
|
Common Functions |
|
_round
|
Returns "numeric_expression" rounded to "integer_expression" places to the right of the decimal point. Notes: "integer_expression" must be a non-negative integer. Rounding takes place before data formatting is applied.
|
Common Functions |
|
sqrt
|
Returns the square root of "numeric_expression". "Numeric_expression" must be non-negative.
|
Common Functions |
|
substring
|
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters or to the end of "string_expression" if "integer_expression2" is omitted. The first character in "string_expression" is at position 1.
|
Common Functions |
|
trim
|
Returns "string_expression" trimmed of leading and trailing blanks or trimmed of a certain character specified in "match_character_expression". "Both" is implicit when the first argument is not stated and blank is implicit when the second argument is not stated.
|
Common Functions |
|
upper
|
Returns "string_expression" with all lowercase characters converted to uppercase.
|
Common Functions |
|
date
|
Inserts the current system date.
|
Constants |
|
date-time
|
Inserts the current system date and time.
|
Constants |
|
time with time zone
|
Inserts a zero time with time zone.
|
Constants |
|
timestamp with time zone
|
Inserts an example of a timestamp with time zone.
|
Constants |
|
interval
|
Inserts a zero interval: 000 00:00:00.000.
|
Constants |
|
interval year
|
Inserts a zero year interval: 0 year.
|
Constants |
|
interval month
|
Inserts a zero month interval: 0 month.
|
Constants |
|
interval year to month
|
Inserts a zero year to month interval: 0000-00 year to month.
|
Constants |
|
interval day
|
Inserts a zero day interval: 0 day.
|
Constants |
|
interval hour
|
Inserts a zero hour interval: 0 hour.
|
Constants |
|
interval minute
|
Inserts a zero minute interval: 0 minute.
|
Constants |
|
interval second
|
Inserts a zero second interval: 0 second.
|
Constants |
|
interval day to hour
|
Inserts a zero day to hour interval: 0 00 day to hour.
|
Constants |
|
interval day to minute
|
Inserts a zero day to minute interval: 0 00:00 day to minute.
|
Constants |
|
interval day to second
|
Inserts a zero day to second interval: 0 00:00:00.000000000 day to second.
|
Constants |
|
interval hour to minute
|
Inserts a zero hour to minute interval: 00:00 hour to minute.
|
Constants |
|
interval hour to second
|
Inserts a zero hour to second interval: 00:00:00.000000000 hour to second.
|
Constants |
|
interval minute to second
|
Inserts a zero minute to second interval: 00:00.000000000 minute to second.
|
Constants |
|
null
|
Inserts "null" if the expression conditions are not met.
|
Constants |
|
number
|
Inserts the number 0, which can be replaced with a new numeric value.
|
Constants |
|
string
|
Inserts an empty string as two single quotation marks between which you can type a string.
|
Constants |
|
time
|
Inserts the current system time.
|
Constants |
|
if then else
|
This construct is the template for an if...then...else statement. This construct appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
|
Constructs |
|
in_range
|
This is the template for an in_range expression.
|
Constructs |
|
search case
|
This construct is the template for a search case, including the case, when, else, and end functions.
|
Constructs |
|
simple case
|
This construct is the template for a simple case, including the case, when, else, and end functions.
|
Constructs |
|
date2string
|
Returns a date as a string in YYYY-MM-DD format.
|
Data Type Casting Functions |
|
date2timestamp
|
Converts "date_expression" to a timestamp. The time part of the timestamp will equal zero.
|
Data Type Casting Functions |
|
date2timestampTZ
|
Converts "date_expression" to a timestamp with a time zone. The time and time zone parts of the timestamp will equal zero.
|
Data Type Casting Functions |
|
DTinterval2string
|
Returns a date time interval as a string in DDDD HH:MM:SS.FFFFFFF or -DDDD HH:MM:SS.FFF format.
|
Data Type Casting Functions |
|
DTinterval2stringAsTime
|
Returns a date time interval as a string in HHHH:MM:SS.FFFFFFF or HH:MM:SS.FFF format. Days are converted to hours.
|
Data Type Casting Functions |
|
int2DTinterval
|
Converts an integer to a date time interval. "String_expression" specifies what "integer_expression" represents: "ns" = nanoseconds, "s" = seconds (default), "m" = minutes, "h" = hours, "d" = days.
|
Data Type Casting Functions |
|
int2YMinterval
|
Converts "integer_expression" to a year month interval. "String_expression" specifies what "integer_ expression" represents: "y" = years, "m" = months (default).
|
Data Type Casting Functions |
|
number2string
|
Converts "numeric_expression" to a string, using the %g format specifier (C/C++ syntax).
|
Data Type Casting Functions |
|
string2date
|
Returns "string_expression" as a date in YYYY-MM-DD format.
|
Data Type Casting Functions |
|
string2double
|
Returns a floating point number. "String_expression" has the following form: "[whitespace] [sign] [digits] [digits] [ {d|D|e|E }[sign]digits]"
|
Data Type Casting Functions |
|
string2DTinterval
|
Returns "string_expression" as a date time interval in [-]DD HH:MM[:SS[.FFF]] format.
|
Data Type Casting Functions |
|
string2int32
|
Returns an integer. "String_expression" has the following form: "[whitespace] [{+|-}] [digits]"
|
Data Type Casting Functions |
|
string2int64
|
Returns a long integer. "String_expression" has the following form: "[whitespace] [{+|-}] [digits]"
|
Data Type Casting Functions |
|
string2time
|
Returns "string_expression" as a time in HH:MM:SS.FFFFFFF format.
|
Data Type Casting Functions |
|
string2timestamp
|
Returns "string_expression" as a timestamp in YYYY-MM-DD [T|t|[white space]+] HH:MM:SS.FFFFFFF format.
|
Data Type Casting Functions |
|
string2timestampTZ
|
Returns "string_expression" in YYYY-MM-DD HH:MM:SS.FFFFFFF +HHMM or YYYY-MMDD [T|t] HH:MM:SS.FFF -HHMM format.
|
Data Type Casting Functions |
|
string2YMinterval
|
Returns "string_expression" as a Year Month Interval in [-]YY MM format.
|
Data Type Casting Functions |
|
time2string
|
Returns a time as a string in HH:MM:SS.FFF format.
|
Data Type Casting Functions |
|
timestamp2date
|
Converts "timestamp_expression" to a date. The time part of the timestamp will be ignored.
|
Data Type Casting Functions |
|
timestamp2string
|
Returns a timestamp as a string in YYYY-MM-DD HH:MM:SS.FFFFFFF format.
|
Data Type Casting Functions |
|
timestamp2timestampTZ
|
Converts "timestamp_expression" to a timestamp with a time zone. The displacement part of the timestamp with the time zone will be zero.
|
Data Type Casting Functions |
|
timestampTZ2date
|
Converts "timestamp_time_zone_expression" to a date. The time and time zone parts of the timestamp will be ignored.
|
Data Type Casting Functions |
|
timestampTZ2string
|
Returns a timestamp with the time zone as a string in YYYY-MM-DD HH:MM:SS.FFFFFFF +HHMM or YYYY-MM-DD HH:MM:SS.FFF -HHMM format.
|
Data Type Casting Functions |
|
timestampTZ2timestamp
|
Converts "timestamp_time_zone_expression" to a timestamp. The displacement part of the timestamp with the time zone will be ignored.
|
Data Type Casting Functions |
|
timeTZ2string
|
Returns a time with the time zone as a string in HH:MM:SS.FFF+HHMMor HH:MM:SS.FFFFFFF -HHMM format. For example, -05:30 means a timezone of GMT minus 5 hours and 30 minutes
|
Data Type Casting Functions |
|
YMinterval2string
|
Returns "year_month_interval_expression" as a string in (YY MM) or -(YY MM) format.
|
Data Type Casting Functions |
|
ascii
|
Returns the ASCII code value of the leftmost character of the argument as an integer.
|
DB2 |
|
ceiling
|
Returns the smallest integer greater than or equal to "numeric_expression".
|
DB2 |
|
char
|
Returns a string representation of a date/time value or a decimal number.
|
DB2 |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
DB2 |
|
concat
|
Returns a string that is the result of concatenating "string_expression1" with "string_expression2".
|
DB2 |
|
date
|
Returns a date from a single input value. "Expression" can be a string or integer representation of a date.
|
DB2 |
|
day
|
Returns the day of the month (1-31) from "date_expression". "Date_expression" can be a date value or a string representation of a date.
|
DB2 |
|
dayname
|
Returns a character string containing the data source-specific name of the day (for example, Sunday through Saturday or Sun. through Sat. for a data source that uses English, or Sonntag through Samstag for a data source that uses German) for the day portion of "date_expression". "Date_expression" can be a date value or a string representation of a date.
|
DB2 |
|
dayofweek
|
Returns the day of the week in "date_expression" as an integer in the range 1 to 7, where 1 represents Sunday. "date_expression" can be a date value or a string representation of a date.
|
DB2 |
|
dayofweek_iso
|
Returns the day of the week in "date_expression" as an integer in the range 1 to 7, where 1 represents Monday. "date_expression" can be a date value or a string representation of a date.
|
DB2 |
|
dayofyear
|
Returns the day of the year in "date_expression" as an integer in the range 1 to 366. "Date_expression" can be a date value or a string representation of a date.
|
DB2 |
|
days
|
Returns an integer representation of a date. "Expression" can be a date value or a string representation of a date.
|
DB2 |
|
dec
|
Returns the decimal representation of "string_expression1" with precision "numeric_expression1", scale "numeric_expression2", and decimal character "string_expression2". "String_expression1" must be formatted as an SQL Integer or Decimal constant.
|
DB2 |
|
decimal
|
Returns the decimal representation of "string_expression1" with precision "numeric_expression1", scale "numeric_expression2" and decimal character "string_expression2". "String_expression1" must be formatted as an SQL Integer or Decimal constant.
|
DB2 |
|
difference
|
Returns an integer value representing the difference between the values returned by the data sourcespecific soundex function for "string_expression1" and "string_expression2". The value returned ranges from 0 to 4, with 4 indicating the best match. Note that 4 does not mean that the strings are equal.
|
DB2 |
|
digits
|
Returns the character string representation of a non-floating point number.
|
DB2 |
|
double
|
Returns the floating-point representation of an expression. "Expression" can either be a numeric or string expression.
|
DB2 |
|
event_mon_state
|
Returns the operational state of a particular state monitor.
|
DB2 |
|
float
|
Returns the floating-point representation of a number.
|
DB2 |
|
hex
|
Returns the hexadecimal representation of a value.
|
DB2 |
|
hour
|
Returns the hour, an integer from 0 (midnight) to 23 (11:00 pm), from "time_expression". "Time_expression" can be a time value or a string representation of a time.
|
DB2 |
|
insert
|
Returns a string where "integer_expression2" characters have been deleted from "string_expression1" beginning at "integer_expression1" and where "string_expression2" has been inserted into "string_ expression1" at its start. The first character in the string is at position 1.
|
DB2 |
|
integer
|
Returns the integer representation of an expression. "Expression" can be a numeric value or a string representation of a number.
|
DB2 |
|
int
|
Returns the integer representation of an expression. "Expression" can be a numeric value or a string representation of a number.
|
DB2 |
|
julian_day
|
Returns an integer value representing the number of days from January 1, 4712 BC (the start of the Julian date calendar) to the date value specified in "expression". "Expression" can be a date value or a string representation of a date.
|
DB2 |
|
lcase
|
Returns "string_expression" with all uppercase characters shifted to lowercase.
|
DB2 |
|
left
|
Returns the leftmost "integer_expression" characters of "string_expression".
|
DB2 |
|
length
|
Returns the length of the operand in bytes. Exception: double byte string types return the length in characters.
|
DB2 |
|
locate
|
Returns the starting position of the first occurrence of "string_expression1" within "string_ expression2". The search starts at position start "integer_expression" of "string_expression2". The first character in a string is at position 1. If "string_expression1" is not found, zero is returned.
|
DB2 |
|
long_varchar
|
Returns a long string.
|
DB2 |
|
ltrim
|
Returns "string_expression" with leading spaces removed.
|
DB2 |
|
microsecond
|
Returns the microsecond (time-unit) part of a value. "Expression" can be a timestamp or a string representation of a timestamp.
|
DB2 |
|
midnight_seconds
|
Returns an integer value in the range 0 to 86400 representing the number of seconds between midnight and time value specified in the argument. "Expression" can be a time value, a timestamp or a string representation of a time.
|
DB2 |
|
minute
|
Returns the minute (an integer from 0-59) from "time_expression". "Time_expression" can be a time value, a timestamp, or a string representation of a time.
|
DB2 |
|
month
|
Returns the month (an integer from 1-12) from "date_expression".
|
DB2 |
|
monthname
|
Returns a character string containing the data source-specific name of the month (for example, January through December or Jan. through Dec. for an English data source, or Januar through Dezember for a German data source) for the month portion of "date_expression".
|
DB2 |
|
quarter
|
Returns the quarter in "date_expression" as a number in the range 1 to 4, where 1 represents January 1 through March 31.
|
DB2 |
|
radians
|
Returns the number of radians converted from "numeric_expression" degrees.
|
DB2 |
|
repeat
|
Returns a string consisting of "string_expression" repeated "integer_expression" times.
|
DB2 |
|
replace
|
Replaces all occurrences of "string_expression2" in "string_expression1" with "string_expression3".
|
DB2 |
|
right
|
Returns the rightmost "integer_expression" characters of "string_expression".
|
DB2 |
|
round
|
Returns "numeric_expression" rounded to "integer_expression" places to the right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
|
DB2 |
|
rtrim
|
Returns "string_expression" with trailing spaces removed.
|
DB2 |
|
second
|
Returns the second (an integer from 0-59) from "time_expression".
|
DB2 |
|
sign
|
Returns an indicator of the sign of "numeric_expression": +1 if "numeric_expression" is positive, 0 if zero, or -1 if negative.
|
DB2 |
|
smallint
|
Returns the small integer representation of a number.
|
DB2 |
|
soundex
|
Returns a 4 character string code obtained by systematically abbreviating words and names in "string_expression" according to phonetics. Can be used to determine if two strings sound the same. For example, does sound-of ('SMITH') = sound-of ('SMYTH').
|
DB2 |
|
space
|
Returns a string consisting of "integer_expression" spaces.
|
DB2 |
|
substr
|
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.
|
DB2 |
|
table_name
|
Returns an unqualified name of a table or view based on the object name in "string_expression1" and the schema name given in "string_expression2". It is used to resolve aliases.
|
DB2 |
|
table_schema
|
Returns the schema name portion of the two-part table or view name based on the object name in "string_expression1" and the schema name in "string_expression2". It is used to resolve aliases.
|
DB2 |
|
time
|
Returns a time from a value.
|
DB2 |
|
timestamp
|
Returns a timestamp from a value or a pair of values. "Expression1" must represent a date value, and "expression2" must represent a time value.
|
DB2 |
|
timestamp_iso
|
Returns a datetime in the ISO format (yyyy-mm-dd hh:mm:ss.nnnnnn) converted from the IBM format (yyyy-mm-dd-hh.mm.ss.nnnnnn). If "expression" is a time, it inserts the value of the CURRENT DATE for the date elements and zero for the fractional time element.
|
DB2 |
|
timestampdiff
|
Returns an estimated number of intervals of type "expression1" based on the difference between two timestamps. "Expression2" is the result of subtracting two timestamp types and converting the result to CHAR. Valid values of "expression1" are: 1 Fractions of a second; 2 Seconds; 4 Minutes; 8 Hours; 16 Days; 32 Weeks; 64 Months; 128 Quarters; 256 Years.
|
DB2 |
|
to_char
|
Returns the string representation of a timestamp with the format of "string_expression".
|
DB2 |
|
translate
|
Returns "string_expression1" in which characters from "string_expression3" are translated to the equivalent characters in "string_expression2". "String_expression4" is a single character that is used to pad "string_expression2" if it is shorter than "string_expression3". If only "string_expression1" is present, then this function translates it to uppercase characters.
|
DB2 |
|
trunc
|
Returns "numeric_expression1" truncated to "numeric_expression2" places to the right of the decimal point. If "numeric_expression2" is negative, "numeric_expression1" is truncated to the absolute value of "numeric_expression2" places to the left of the decimal point.
|
DB2 |
|
truncate
|
Returns "numeric_expression1" truncated to "numeric_expression2" places to the right of the decimal point. If "numeric_expression2" is negative, "numeric_expression1" is truncated to the absolute value of "numeric_expression2" places to the left of the decimal point.
|
DB2 |
|
ucase
|
Returns "string_expression" with all lowercase characters shifted to uppercase.
|
DB2 |
|
value
|
Returns the first non-null argument (or null if all arguments are null). The Value function takes two or more arguments.
|
DB2 |
|
varchar
|
Returns a VARCHAR representation of expression, with length numeric_expression.
|
DB2 |
|
week
|
Returns the week of the year in "date_expression" as an integer value in the range 1 to 53.
|
DB2 |
|
year
|
Returns the year from "date_expression".
|
DB2 |
|
log
|
Returns the natural logarithm of "numeric_expression".
|
DB2 Math |
|
log10
|
Returns the base ten logarithm of "numeric_expression".
|
DB2 Math |
|
rand
|
Generates a random number using "integer_expression" as a seed value.
|
DB2 Math |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
DB2 Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
DB2 Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
DB2 Trigonometry |
|
atan2
|
Returns the arctangent of the x and y coordinates specified by "numeric_expression1" and "numeric_ expression2", respectively, in radians. The returned angle will be between - and π radians, excluding π.
|
DB2 Trigonometry |
|
atanh
|
Returns the inverse hyperbolic tangent of "numeric_expression" where "numeric_expression" can be any real number between 1 and -1, excluding 1 and -1.
|
DB2 Trigonometry |
|
cosh
|
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" can be any real number.
|
DB2 Trigonometry |
|
cot
|
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
DB2 Trigonometry |
|
degrees
|
Returns "numeric_expression" radians converted to degrees.
|
DB2 Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
DB2 Trigonometry |
|
sinh
|
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
DB2 Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
DB2 Trigonometry |
|
tanh
|
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
DB2 Trigonometry |
|
ancestor
|
Returns the ancestor of "member" at "level" or at "integer" number of levels above "member". Note: The result is not guaranteed to be consistent when there is more than one such ancestor.
|
Dimensional Functions |
|
ancestors
|
Returns all the ancestors of "member" at "level" or "index" distance above the member. (Most data sources support only one ancestor at a specified level. If the data source supports more than one ancestor, the result is a member set.)
|
Dimensional Functions |
|
bottomCount
|
Sorts a set according to the value of "numeric_expression" evaluated at each of the members of "set_expression" and returns the bottom "index_expression" members.
|
Dimensional Functions |
|
bottomPercent
|
Sorts "numeric_expression2", evaluated at the corresponding members of "set_expression", and picks up the bottommost elements whose cumulative total is equal to or less than "numeric_ expression1" percent of the total.
|
Dimensional Functions |
|
bottomSum
|
Sorts "numeric_expression2", evaluated at the corresponding member of "set_expression", and picks up the bottommost elements whose cumulative total is equal to or less than "numeric_ expression1".
|
Dimensional Functions |
|
caption
|
Returns the caption values of "level", "member", or "set_expression". The caption is the string display name for an element and does not necessarily match the unique identifier used to generate the business key or member unique name (MUN) for the element. The caption is not necessarily unique; for example, the caption for a month may return the month name without further year details to make the value unique.
|
Dimensional Functions |
|
children
|
Returns the set of children of a specified member.
|
Dimensional Functions |
|
closingPeriod
|
Returns the last sibling member among the descendants of a member at "level". This function is typically used with a time dimension.
|
Dimensional Functions |
|
cousin
|
Returns the child member of "member2" with the same relative position as "member1" to its parent. This function appears in the Revenue by GO Subsidiary 2005 sample report in the GO Data Warehouse (analysis) package.
|
Dimensional Functions |
|
completeTuple
|
Identifies a cell location (intersection) based on the specified members, each of which must be from a different dimension. However, completeTuple () implicitly includes the default member from all dimensions not otherwise specified in the arguments, rather than the current member. CompleteTuple will use the default measure rather than the currentMeasure in the query if the measure is not defined in the completetuple function. This function appears in the Planned Headcount sample report in the GO Data Warehouse (analysis) package.
|
Dimensional Functions |
|
currentMember
|
Returns the current member of the hierarchy during an iteration. If "hierarchy" is not present in the context in which the expression is being evaluated, its default member is assumed. This function appears in the Rolling and Moving Averages interactive sample report.
|
Dimensional Functions |
|
defaultMember
|
Returns the default member of "hierarchy".
|
Dimensional Functions |
|
descendants
|
Returns the set of descendants of "member" or "set_expression" at "level" (qualified name) or "distance" (integer 0..n) from the root. Multiple options may be specified (separated by a space) to determine which members are returned. self: Only the members at the specified level are included in the final set (this is the default behaviour in the absence of any options). before: If there are any intermediate levels between the member's level and the one specified, members from those levels are included. If the level specified is the same as the member upon which the function is applied, the member is included in the final set. beforewithmember: If there are any intermediate levels between the member's level and the one specified, members from those levels are included. The member upon which the function is applied is also included in the final set. after: If other levels exist after the specified level, members from those levels are included in the final set. This function appears in the Sales Commissions for Central Europe sample report in the GO Data Warehouse (analysis) package.
|
Dimensional Functions |
|
except
|
Returns the members of "set_expression1" that are not also in "set_expression2". Duplicates are retained only if the optional keyword all is supplied as the third argument.
|
Dimensional Functions |
|
filter
|
Returns the set resulting from filtering a specified set based on the Boolean condition. Each member is included in the result if and only if the corresponding value of "Boolean_expression" is true.
|
Dimensional Functions |
|
firstChild
|
Returns the first child of "member".
|
Dimensional Functions |
|
firstSibling
|
Returns the first child of the parent of "member".
|
Dimensional Functions |
|
_format
|
Associates a format with the expression. The format_keyword can be PERCENTAGE_0, PERCENTAGE_ 1, or PERCENTAGE_2. PERCENTAGE_1 returns a percentage with one digit to the right of the decimal point, PERCENTAGE_2 returns a percentage with two digits to the right of the decimal point, and PERCENTAGE_3 returns a percentage value out of one with three digits to the right of the decimal point (for example, 0.965).
|
Dimensional Functions |
|
emptySet
|
Returns an empty member set for "hierarchy". This is most often used as a placeholder during development or with dynamic report design (either with the IBM® Cognos® Software Development Kit or via report design). By creating a data item that contains the emptyset function, it is possible to build complex expressions that can later be revised by redefining the emptyset data item.
|
Dimensional Functions |
|
generate
|
Evaluates "set_expression2" for each member of "set_expression1" and joins the resulting sets by union. The result retains duplicates only when the optional keyword "all" is supplied as the third argument.
|
Dimensional Functions |
|
head
|
Returns the first "index_expression" elements of "set_expression". The default for "index_expression" is 1.
|
Dimensional Functions |
|
hierarchize
|
Orders the members of "set_expression" in a hierarchy. Members in a level are sorted in their natural order. This is the default ordering of the members along a dimension when no other sort conditions are specified.
|
Dimensional Functions |
|
hierarchy
|
Returns the hierarchy that contains "level", "member", or "set_expression".
|
Dimensional Functions |
|
item
|
Returns a member from the "index" location within "set_expression". The index into the set is zero based.
|
Dimensional Functions |
|
intersect
|
Returns the intersection of "set_expression1" and "set_expression2". The result retains duplicates only when the optional keyword "all" is supplied as the third argument.
|
Dimensional Functions |
|
lag
|
Returns the sibling member that is "index_expression" number of positions prior to "member".
|
Dimensional Functions |
|
lastChild
|
Returns the last child of a specified member.
|
Dimensional Functions |
|
lastPeriods
|
Returns the set of members from the same level that ends with "member". The number of members returned is the absolute value of "integer_expression". If "integer_expression" is negative, members following and including the specified member are returned. Typically used with a time dimension. This function appears in the Rolling and Moving Averages interactive sample report.
|
Dimensional Functions |
|
lastSibling
|
Returns the last child of the parent of a specified member.
|
Dimensional Functions |
|
lead
|
Returns the sibling member that is "index_expression" number of positions after "member". If "index_expression" is negative, returns the sibling member that is "index_expression" number of positions before "member".
|
Dimensional Functions |
|
level
|
Returns the level of "member".
|
Dimensional Functions |
|
levels
|
Returns the level in "hierarchy" whose distance from the root is specified by "index".
|
Dimensional Functions |
|
linkMember
|
Returns the corresponding member in "level" or "hierarchy" (of the same dimension). For levelbased hierarchies, a level must be specified as the second argument, and for parent-child hierarchies, a hierarchy must be specified. An exception is thrown when the second parameter does not resolve to a hierarchy of the member's dimension. Note that calculated members are not supported as the first argument.
|
Dimensional Functions |
|
members
|
Returns the set of members in "hierarchy" or "level". In the case of a hierarchy, the order of the members in the result is not guaranteed. If a predictable order is required, an explicit ordering function (such as hierarchize) must be used.
|
Dimensional Functions |
|
nextMember
|
Returns the next member in the "member" level.
|
Dimensional Functions |
|
openingPeriod
|
Returns the first sibling member among the descendants of a member at "level". This function is typically used with a time dimension.
|
Dimensional Functions |
|
order
|
Arranges the members of "set_expression" according to their "value_expression" and the third parameter. ASC and DESC arrange members in ascending or descending order, respectively, according to their position in the set hierarchy. Then the children of each member are arranged according to "value_expression". BASC and BDESC arrange members in the set without regard to the hierarchy. In the absence of an explicit specification, ASC is the default.
|
Dimensional Functions |
|
ordinal
|
Returns the zero-based ordinal value (distance from the root level) of "level".
|
Dimensional Functions |
|
parallelPeriod
|
Returns a member from a prior period in the same relative position as "member". This function is similar to the cousin function, but is more closely related to time series. It takes the ancestor of "member" at "level" (called "ancestor") and the sibling of "ancestor" that lags by "integer_ expression" positions, and returns the parallel period of "member" among the descendants of that sibling. When unspecified, "integer_expression" defaults to 1 and "member" defaults to the current member.
|
Dimensional Functions |
|
parent
|
Returns the member that is the parent of "member" or "measure".
|
Dimensional Functions |
|
periodsToDate
|
Returns a set of sibling members from the same level as "member", as constrained by "level". It locates the ancestor of "member" at "level" and returns that ancestor's descendants at the same level as "member" (up to and including "member"). Typically used with a time dimension. This function appears in the Rolling and Moving Averages interactive sample report.
|
Dimensional Functions |
|
prevMember
|
Returns the member that immediately precedes "member" in the same level. This function appears in the Sales Growth Year Over Year sample report in the GO Data Warehouse (analysis) package.
|
Dimensional Functions |
|
member
|
Defines a member based on "value_expression" in "hierarchy". "String1" identifies the member created by this function. It must be unique in the query and different from any other member in the same hierarchy. "String2" is the caption of the member; if it is absent, the caption is empty. To ensure predictable results, it is recommended that you supply the "hierarchy". Note: All calculations used as grouping items whose sibling items are other calculations or member sets should be explicitly assigned to a hierarchy using this function. The results are not predictable otherwise. The only exception is where the calculation involves only members of the same hierarchy as the siblings. In this case, the calculation is assumed to belong to that hierarchy.
|
Dimensional Functions |
|
nestedSet
|
Returns the set of members of "set_expression2" evaluated in the context of the current member of "set_expression1".
|
Dimensional Functions |
|
set
|
Returns the list of members defined in the expression. The members must belong to the same hierarchy.
|
Dimensional Functions |
|
siblings
|
Returns the children of the parent of the specified member.
|
Dimensional Functions |
|
tail
|
Returns the last "index_expression" elements of "set expression". The default for "index_expression" is 1.
|
Dimensional Functions |
|
topCount
|
Sorts a set according to the values of "numeric_expression" evaluated at each of the members of "set_expression" and returns the top "index_expression" members.
|
Dimensional Functions |
|
topPercent
|
Sorts "numeric_expression2", evaluated at the corresponding members of "set_expression", and picks up the topmost elements whose cumulative total is at least "numeric_expression1" percent of the total.
|
Dimensional Functions |
|
topSum
|
Sorts "numeric_expression2", evaluated at the corresponding members of "set_expression", and picks up the topmost elements whose cumulative total is at least "numeric_expression1".
|
Dimensional Functions |
|
tuple
|
Identifies a cell location (intersection) based on the specified members, each of which must be from a different dimension. This function implicitly includes the current member from all dimensions that are not otherwise specified in the arguments. The current member of any dimension not specified in the evaluating context is assumed to be the default member of that dimension. The value of this cell can be obtained with the "value" function.
|
Dimensional Functions |
|
union
|
Returns data for "set_expression1" and "set_expression2". The result retains duplicates only when the optional keyword "all" is supplied as the third argument.
|
Dimensional Functions |
|
roleValue
|
Returns the value of the attribute that is associated with the role whose name is specified by "string" within the specified context. "Member" or "set_expression" is optional only in a number of limited circumstances, where it can be derived from another context. Applications can be made portable across different data sources and models by accessing attributes by role rather than by query item ID. For dimensionally-modeled relational (DMR) data sources, assignment of roles is the modeler's responsibility. Intrinsic roles that are defined for members of all data source types include: '_businessKey', '_memberCaption', '_memberDescription', '_memberUniqueName'. Additional roles can be defined in Framework Manager for each level in a hierarchy. For example, a Product type level may have an attribute column called "Type Shipping Container", and the Product level may have a "Product Shipping Container" attribute. Each of these could be assigned a custom role in Framework Manager called "Container". The property could then be referenced independently of the actual column name by using the roleValue function.
|
Dimensional Functions |
|
rootMember
|
Returns the root member of a single-root hierarchy. This function appears in the Promotion Success sample report in the GO Data Warehouse (analysis) package.
|
Dimensional Functions |
|
rootMembers
|
Returns the root members of a hierarchy.
|
Dimensional Functions |
|
subset
|
Returns a subset of members in "set_expression" starting at "index_expression1" from the beginning. If the count "index_expression2" is specified, that many members are returned (if available). Otherwise, all remaining members are returned.
|
Dimensional Functions |
|
unique
|
Removes all duplicates from "set_expression". The remaining members retain their original order.
|
Dimensional Functions |
|
value
|
Returns the value of the cell identified by "tuple". Note that the default member of the Measures dimension is the Default Measure.
|
Dimensional Functions |
|
to_char
|
Returns the string representation of "expression" with the format of "string_expression". "Expression" can either be a date value or a numeric value.
|
Greenplum Data type formatting |
|
to_date
|
Converts "string_expression1" to a date value as specified by the format "string_expression2".
|
Greenplum Data type formatting |
|
to_number
|
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
|
Greenplum Data type formatting |
|
to_timestamp
|
Converts "string_expression1" to a timestamp value as specified by the format "string_expression2".
|
Greenplum Data type formatting |
|
translate
|
Returns "string_expression1" with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
|
Greenplum Data type formatting |
|
date_trunc
|
Returns the timestamp to the specified precision.
|
Greenplum Data type formatting |
|
version
|
Returns the string value of the database version.
|
Greenplum Data type formatting |
|
log
|
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
|
Greenplum Math |
|
ln
|
Returns the natural logarithm of "numeric_expression1".
|
Greenplum Math |
|
cbrt
|
Returns the cube root of "numeric_expression1".
|
Greenplum Math |
|
pi
|
Returns the constant of pi.
|
Greenplum Math |
|
overlay
|
Returns the "string_expression1" replacing "string_expression2" from character position "numeric_ expression".
|
Greenplum String |
|
btrim
|
Returns "string_expression1" after removing the longest string of characters in "string_expression2".
|
Greenplum String |
|
initcap
|
Returns "string_expression" with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
|
Greenplum String |
|
lpad
|
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
|
Greenplum String |
|
ltrim
|
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
|
Greenplum String |
|
md5
|
Returns the MD5 hash of "string_expression1".
|
Greenplum String |
|
to_hex
|
Returns the hexadecimal string representation of "numeric_expression1".
|
Greenplum String |
|
repeat
|
Returns the "string_expression" repeated "numeric_expression1" times.
|
Greenplum String |
|
replace
|
Returns "string_expression" having replaced "string_expression2" with "string_expression3".
|
Greenplum String |
|
rpad
|
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
|
Greenplum String |
|
rtrim
|
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
|
Greenplum String |
|
split_part
|
Returns "numeric_expression" field having split "string_expression1" on "string_expression2".
|
Greenplum String |
|
ascii
|
Returns a number representing the ascii code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
|
Greenplum String |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
Greenplum String |
|
current_database
|
Returns the name of the current database.
|
Greenplum String |
|
current_schema
|
Returns the name of the current schema.
|
Greenplum String |
|
{current_user}
|
|
Greenplum String |
|
{session_user}
|
|
Greenplum String |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Greenplum Trigonometry |
|
radians
|
Returns the degree equivalent of "numeric_expression". Results are of the same type as "numeric_ expression". For numeric or decimal expressions, the results have an internal precision of 77 and a scale equal to that of "numeric_expression". When the money datatype is used, an internal conversion to float may cause some loss of precision.
|
Greenplum Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression". "Numeric_expression" must be between -1 and 1, inclusive.
|
Greenplum Trigonometry |
|
degrees
|
Returns the degrees where "numeric_expression" is an angle expressed in radians.
|
Greenplum Trigonometry |
|
cardinality
|
Returns the number of elements in a collection column (SET, MULTISET, LIST).
|
Informix |
|
char_length
|
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.
|
Informix |
|
concat
|
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
|
Informix |
|
date
|
Returns the date value of "string_expression", "date_expression", or "integer_expression".
|
Informix |
|
day
|
Returns an integer that represents the day of the month (1-31).
|
Informix |
|
extend
|
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.
|
Informix |
|
hex
|
Returns the hexadecimal encoding of "integer_expression".
|
Informix |
|
initcap
|
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.
|
Informix |
|
length
|
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.
|
Informix |
|
lpad
|
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".
|
Informix |
|
mdy
|
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).
|
Informix |
|
month
|
Returns an integer corresponding to the month portion of "date_expression".
|
Informix |
|
nvl
|
Returns the value of "expression1" if "expression1" is not NULL. If "expression1" is NULL, then returns the value of "expression2".
|
Informix |
|
octet_length
|
Returns the number of bytes in "string_expression", including any trailing spaces.
|
Informix |
|
replace
|
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.
|
Informix |
|
round
|
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.
|
Informix |
|
rpad
|
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".
|
Informix |
|
substr
|
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".
|
Informix |
|
to_char
|
Returns the character string "date_expression" with the specified "string_expression" formatting. You can use this function only with built-in data types.
|
Informix |
|
to_date
|
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.
|
Informix |
|
trunc
|
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 |
|
weekday
|
Returns an integer that represents the day of the week of "date_expression". Zero (0) represents Sunday, one (1) represents Monday, and so on.
|
Informix |
|
year
|
Returns a four-digit integer that represents the year of "date_expression".
|
Informix |
|
log10
|
Returns the logarithm of "numeric_expression" to base 10.
|
Informix Math |
|
logn
|
Returns the natural logarithm of "numeric_expression".
|
Informix Math |
|
root
|
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".
|
Informix Math |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Informix Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Informix Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
Informix Trigonometry |
|
atan2
|
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_ expression2" / "numeric_expression1".
|
Informix Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Informix Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Informix Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Informix Trigonometry |
|
+
|
Concatenates two strings.
|
Macro Functions |
|
_add_days
|
Returns the timestamp with time zone (as a string) that results from adding "integer_expression" number of days to "string_expression", where "string_expression" represents a timestamp with time zone.
|
Macro Functions |
|
_add_months
|
Returns the timestamp with time zone (as a string) that results from adding "integer_expression" number of months to "string_expression", where "string_expression" represents a timestamp with time zone.
|
Macro Functions |
|
_add_years
|
Returns the timestamp with time zone (as a string) that results from adding "integer_expression" number of years to "string_expression", where "string_expression" represents a timestamp with time zone.
|
Macro Functions |
|
array
|
Constructs an array out of the list of parameters.
|
Macro Functions |
|
csv
|
Constructs a string from the elements of the array where the values are separated by commas. Optionally, the separator and quote strings can be specified. The default separator is a comma ( , ) and the default quote character is a single quote ( ' ).
|
Macro Functions |
|
dq
|
Surrounds "string_expression" with double quotes.
|
Macro Functions |
|
getConfigurationEntry
|
Get an entry from the IBM® Cognos® configuration file. The force_decode_flag is optional and must be one of: 'true' , '1', 1 , 'false', '0', 0. The default is 'true'. When true, the value of the configuration entry will be decrypted into plain text if it is encrypted.
|
Macro Functions |
|
grep
|
Searches for and returns elements of an array that match the pattern specified in "pattern_string".
|
Macro Functions |
|
_first_of_month
|
Returns a timestamp with time zone (as a string) by converting the day value in "string_expression" to 1, where "string_expression" is a timestamp with time zone.
|
Macro Functions |
|
_last_of_month
|
Returns a timestamp with time zone (as a string) that is the last day of the month represented by "string_expression", where "string_expression" is a timestamp with time zone.
|
Macro Functions |
|
join
|
Joins the elements of an array using "separator_string".
|
Macro Functions |
|
prompt
|
Prompts the user for a single value. Only "prompt_name" is required. The datatype defaults to "string" when it is not specified. The prompt is optional when "defaultText" is specified. "Text", when specified, will precede the value. "QueryItem" can be specified to take advantage of the prompt information properties of "queryItem". "Trailing_text", when specified, will be appended to the value.
|
Macro Functions |
|
promptmany
|
Prompts the user for one or more values. Only "prompt_name" is required. The datatype defaults to string when it is not specified. The prompt is optional when "defaultText" is specified. "Text", when specified, will precede the list of values. "QueryItem" can be specified to take advantage of the prompt information properties of "queryItem". "Trailing_text", when specified, will be appended to the list of values.
|
Macro Functions |
|
sb
|
Surrounds "string_expression" with square brackets.
|
Macro Functions |
|
sq
|
Surrounds "string_expression" with single quotes.
|
Macro Functions |
|
sort
|
Sorts the elements of the array in alphabetical order. Duplicates are retained.
|
Macro Functions |
|
split
|
Splits a string or string elements of the array into separate elements.
|
Macro Functions |
|
substitute
|
Searches for a pattern in a string or in the string elements of an array and substitutes the first occurrence of "pattern_string" with "replacement_string".
|
Macro Functions |
|
timestampMask
|
Returns "string_expression1", representing a timestamp with time zone, trimmed to the format specified in "string_expression2". The format in "string_expression2" must be one of the following: 'yyyy', 'mm', 'dd', 'yyyy-mm', 'yyyymm', 'yyyy-mm-dd', 'yyyymmdd', 'yyyy-mm-dd hh:mm:ss', 'yyyy-mm-dd hh:mm:ss+hh:mm', 'yyyy-mm-dd hh:mm:ss.ff3', 'yyyy-mm-dd hh:mm:ss.ff3+hh:mm', 'yyyy-mm-ddThh:mm:ss', 'yyyy-mm-ddThh:mm:ss+hh:mm', 'yyyy-mm-ddThh:mm:ss.ff3+hh:mm', or 'yyyy-mm-ddThh:mm:ss.ff3+hh:mm'. The macro functions that return a string representation of a timestamp with time zone show a precision of 9 digits for the fractional part of the seconds by default. The format options allow this to be trimmed down to a precision of 3 or 0.
|
Macro Functions |
|
toLocal
|
Returns the string representing a timestamp with time zone resulting from adjusting "string_expression" to the time zone of the operating system. Note that the macro function timestampMask () can be used to trim the output.
|
Macro Functions |
|
toUTC
|
Returns the string representing a timestamp with time zone resulting from adjusting "string_expression" to the zero-point reference UTC time zone, also known as GMT time. Note that the macro function timestampMask () can be used to trim the output.
|
Macro Functions |
|
unique
|
Removes duplicate entries from the array. The order of the elements is retained.
|
Macro Functions |
|
urlencode
|
URL-encodes the passed argument. This function is useful when specifying XML connection strings.
|
Macro Functions |
|
CSVIdentityName
|
Uses the identity information of the current authenticated user to look up values in the specified parameter map. Each individual piece of the user's identity (account name, group names, role names) is used as a key into the map. The unique list of values that is retrieved from the parameter map is then returned as a string, where each value is surrounded by single quotes and where multiple values are separated by commas.
|
Macro Functions |
|
CSVIdentityNameList
|
Returns the pieces of the user's identity (account name, group names, role names) as a list of strings. The unique list of values is returned as a string, where each value is surrounded by single quotes and where multiple values are separated by commas.
|
Macro Functions |
|
CAMPassport
|
Returns the Cognos® Access Manager passport.
|
Macro Functions |
|
CAMIDList
|
Returns the pieces of the user's Cognos® Access Manager ID (CAMID), such as account name, group names, or role names, as a list of values separated by commas.
|
Macro Functions |
|
CAMIDListForType
|
Returns an array of the user's Cognos® Access Manager IDs (CAMIDs) based on the identity type (account, group, or role). CAMIDListForType can be used with the macro functions csv or join.
|
Macro Functions |
|
quantile
|
Returns the rank of a value within a range that you specify. It returns integers to represent any range of ranks, such as 1 (highest) to 100 (lowest). The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Member Summaries |
|
quartile
|
Returns the rank of a value, represented as integers from 1 (highest) to 4 (lowest), relative to a group of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Member Summaries |
|
rank
|
Returns the rank value of selected data items. The sort order is optional; descending order (DESC) is assumed by default. If two or more rows tie, then there is a gap in the sequence of ranked values (also known as Olympic ranking). The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources. Distinct is an alternative expression that is compatible with earlier versions of the product. Null values are ranked last. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
|
Member Summaries |
|
standard-deviation
|
Returns the standard deviation of the selected data items.
|
Member Summaries |
|
standard-deviation-pop
|
Returns the standard deviation population of the selected data items.
|
Member Summaries |
|
total
|
Returns the total value of the selected data items.
|
Member Summaries |
|
variance
|
Returns the variance of the selected data items.
|
Member Summaries |
|
variance-pop
|
Returns the variance population of the selected data items.
|
Member Summaries |
|
aggregate
|
Returns a calculated value using the appropriate aggregation function, based on the aggregation type of the expression. This function appears in the Budget vs. Actual sample report in the GO Data Warehouse (analysis) package.
|
Member Summaries |
|
count
|
Returns the number of selected data items excluding null values. Distinct is an alternative expression that is compatible with earlier versions of the product.
|
Member Summaries |
|
maximum
|
Returns the maximum value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product.
|
Member Summaries |
|
median
|
Returns the median value of selected data items.
|
Member Summaries |
|
minimum
|
Returns the minimum value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product.
|
Member Summaries |
|
average
|
Returns the average value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product.
|
Member Summaries |
|
ascii
|
Returns the ascii code value of the leftmost character of "string_expression".
|
MS Access |
|
ceiling
|
Returns the smallest integer greater than or equal to "numeric_expression".
|
MS Access |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
MS Access |
|
concat
|
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
|
MS Access |
|
curdate
|
Returns a date value representing the current date of the computer that the database software runs on.
|
MS Access |
|
curtime
|
Returns a time value representing the current time of the computer that the database software runs on.
|
MS Access |
|
dayname
|
Returns a character string containing the data source-specific name of the day (for example, Sunday through Saturday or Sun. through Sat. for an English data source, or Sonntag through Samstag for a German data source) for the day portion of "date_expression".
|
MS Access |
|
dayofmonth
|
Returns the day of the month (1-31) from "date_expression". Returns the days field (a signed integer) from "interval_expression".
|
MS Access |
|
dayofweek
|
Returns the day of the week in "date_expression" as an integer (1-7), where 1 represents Monday.
|
MS Access |
|
dayofyear
|
Returns the day of the year in "date_expression" as an integer (1-366).
|
MS Access |
|
hour
|
Returns the hour from "time_expression" as an integer from 0 (midnight) to 23 (11:00 pm).
|
MS Access |
|
instr
|
Searches "string_expression1" for the first occurrence of "string_expression2" and returns an integer specifying the position of "string_expression2". "Integer_expression1" sets the starting position for the search. If "integer_expression1" is omitted, the search begins at the first character position of "string_expression1". "Integer_expression2" specifies the type of string comparison. "Integer_expression1" is required if "integer_expression2" is specified.
|
MS Access |
|
lcase
|
Returns "string_expression" with all uppercase characters converted to lowercase.
|
MS Access |
|
left
|
Returns the leftmost "integer_expression" characters of "string_expression".
|
MS Access |
|
length
|
Returns the number of characters in "string_expression", excluding trailing blanks and the string termination character.
|
MS Access |
|
locate
|
Returns the starting position of the first occurrence of "string_expression1" within "string_ expression2". The search starts at position "integer_expression" of "string_expression2". The first character in a string is at position 1. If "string_expression1" is not found, then zero is returned.
|
MS Access |
|
ltrim
|
Returns "string_expression" with leading spaces removed.
|
MS Access |
|
minute
|
Returns the minute (an integer from 0-59) from "time_expression".
|
MS Access |
|
month
|
Returns the month (an integer from 1-12) from "date_expression".
|
MS Access |
|
monthname
|
Returns a character string containing the data source-specific name of the month (for example, January through December or Jan. through Dec. for an English data source, or Januar through Dezember for a German data source) for the month portion of "date_expression".
|
MS Access |
|
now
|
Returns a datetime value representing the current date and time of the computer that the database software runs on.
|
MS Access |
|
position
|
Returns the starting position of "string_expression1" in "string_expression2". The first character in a string is at position 1.
|
MS Access |
|
quarter
|
Returns the quarter in "date_expression" as a number (1-4), where 1 represents January 1 through March 31.
|
MS Access |
|
right
|
Returns the rightmost "integer_expression" characters of "string_expression".
|
MS Access |
|
round
|
Returns "numeric_expression" rounded to the nearest value "integer_expression" places right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
|
MS Access |
|
rtrim
|
Returns "string_expression" with trailing spaces removed.
|
MS Access |
|
sign
|
Returns an indicator of the sign of "numeric_expression", +1 if positive, 0 if zero, or -1 if negative.
|
MS Access |
|
space
|
Returns a string consisting of "integer_expression" spaces.
|
MS Access |
|
substr
|
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.
|
MS Access |
|
substring
|
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.
|
MS Access |
|
truncate
|
Returns "string_expression" with trailing spaces removed.
|
MS Access |
|
ucase
|
Returns "string_expression" with all lowercase characters converted to uppercase.
|
MS Access |
|
week
|
Returns the week of the year in "date_expression" as an integer value (1-53), where 1 represents the first week of the year.
|
MS Access |
|
year
|
Returns the year from "date_expression".
|
MS Access |
|
cast_decimal
|
Returns the value of "expression" cast as a decimal.
|
MS Access Cast |
|
cast_float
|
Returns the value of "expression" cast as a float.
|
MS Access Cast |
|
cast_integer
|
Returns the value of "expression" cast as an integer.
|
MS Access Cast |
|
cast_numeric
|
Returns "string_expression" cast as a numeric value.
|
MS Access Cast |
|
cast_real
|
Returns the value of "expression" cast as a real value.
|
MS Access Cast |
|
cast_smallint
|
Returns "expression" cast as a small integer.
|
MS Access Cast |
|
cast_varchar
|
Returns the value of "expression" cast as a variable character field.
|
MS Access Cast |
|
log
|
Returns the natural logarithm of "numeric_expression".
|
MS Access Math |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
MS Access Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
MS Access Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
MS Access Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
MS Access Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
MS Access Trigonometry |
|
log
|
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
|
MySQL Math |
|
ln
|
Returns the natural logarithm of "numeric_expression1".
|
MySQL Math |
|
pi
|
Returns the constant of pi.
|
MySQL Math |
|
lpad
|
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
|
MySQL String |
|
ltrim
|
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
|
MySQL String |
|
hex
|
Returns the hexadecimal string representation of "numeric_expression1".
|
MySQL String |
|
repeat
|
Returns the "string_expression" repeated "numeric_expression1" times.
|
MySQL String |
|
replace
|
Returns "string_expression" having replaced "string_expression2" with "string_expression3".
|
MySQL String |
|
reverse
|
Returns "string_expression" reversed.
|
MySQL String |
|
right
|
Returns the rightmost "numeric_expression" characters from "string_expression1".
|
MySQL String |
|
rpad
|
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
|
MySQL String |
|
rtrim
|
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
|
MySQL String |
|
soundex
|
Returns a soundex string of "string_expression1".
|
MySQL String |
|
ascii
|
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
|
MySQL String |
|
database
|
Returns the current database name
|
MySQL String |
|
schema
|
Returns the current schema name
|
MySQL String |
|
session_user
|
Return the user name returned by the client
|
MySQL String |
|
system_user
|
Return the user name returned by the client
|
MySQL String |
|
version
|
Returns the string value of the database version.
|
MySQL String |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression". "Numeric_expression" must be between -1 and 1, inclusive.
|
MySQL Trigonometry |
|
cot
|
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
MySQL Trigonometry |
|
degrees
|
Returns the degrees where "numeric_expression" is an angle expressed in radians.
|
MySQL Trigonometry |
|
radians
|
Returns the radians where "numeric_expression" is an angle expressed in degrees.
|
MySQL Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
MySQL Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
MySQL Trigonometry |
|
atan2
|
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_ expression2" / "numeric_expression1".
|
MySQL Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
MySQL Trigonometry |
|
ascii
|
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
|
Netezza |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
Netezza |
|
decode
|
Compares "expr" to each search value one by one. If "expr" is equal to a search, then it returns the corresponding result. If no match is found, it returns "default". If "default" is omitted, it returns null.
|
Netezza |
|
initcap
|
Returns "string_expression", with the first letter of each word in uppercase, all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
|
Netezza |
|
instr
|
Searches "string_expression1" starting at position "integer_expression1" for the "integer_expression2" occurrence of "string_expression2". If "integer_expression1" is negative then the search is backwards from the end of "string_expression1". Returns an integer indicating the position of "string_expression2".
|
Netezza |
|
lpad
|
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
|
Netezza |
|
ltrim
|
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
|
Netezza |
|
months_between
|
Returns the number of months from "date_expression1" to "date_expression2". If "date_expression1" is later than "date_expression2" then the result will be a positive number. The days and time portions of the difference are ignored, i.e., the months are not rounded, except if "date_expression1" and "date_expression2" are the last days of a month.
|
Netezza |
|
next_day
|
Returns the datetime of the first weekday named by "string_expression" that is later than "datetime_ expression". The return value has the same hours, minutes, and seconds as "datetime_expression".
|
Netezza |
|
nvl
|
Returns "expression" if not null, otherwise returns "constant". Valid for "numeric_expression", "string_expression", "date_expression", and "time_expression".
|
Netezza |
|
round
|
Returns "numeric_expression" rounded to the nearest value "integer_expression" places right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point; for example, round (125, -1) rounds to 130.
|
Netezza |
|
rpad
|
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
|
Netezza |
|
rtrim
|
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
|
Netezza |
|
substr
|
Returns the substring of "string_expression" that starts at position "integer_expression1". The first character in "string_expression" is at position 1. "Integer_expression2" can be used to select fewer characters; by default it selects characters to the end of the string.
|
Netezza |
|
{current_db}
|
|
Netezza |
|
{current_user}
|
Returns the database username (authorization ID) of the current user.
|
Netezza |
|
{session_user}
|
|
Netezza |
|
to_char
|
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value.
|
Netezza |
|
to_date
|
Converts "string_expression1" to a datetime value as specified by the format "string_expression2".
|
Netezza |
|
to_number
|
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
|
Netezza |
|
translate
|
Returns "string_expression1", with all occurrences of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
|
Netezza |
|
date_trunc
|
Truncates "date_expression1" to a value as specified by the format "string_expression1".
|
Netezza |
|
trunc
|
Truncates digits from "numeric_expression1" using "numeric_expression2" as the precision.
|
Netezza |
|
version
|
Returns the "string_expression1" value of the database version.
|
Netezza |
|
le_dst
|
Returns a value indicating how different the two input strings are, calculated according to the Levenshtein edit distance algorithm.
|
Netezza Fuzzy |
|
dle_dst
|
Returns a value indicating how different the two input strings are, calculated according to the Damerau-Levenshtein distance algorithm
|
Netezza Fuzzy |
|
log
|
Returns the logarithm of "numeric_expression2" to the base "numeric_expression1".
|
Netezza Math |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Netezza Math |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Netezza Math |
|
atan
|
Returns the arctangent of "numeric_expression" in radians where the arctangent is the angle whose tangent is "numeric_expression".
|
Netezza Math |
|
atan2
|
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_ expression2" / "numeric_expression1".
|
Netezza Math |
|
cos
|
Returns the cosine of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
|
Netezza Math |
|
degrees
|
Returns the degrees where "numeric_expression" is an angle expressed in radians.
|
Netezza Math |
|
radians
|
Returns the radians where "numeric_expression" is an angle expressed in degrees.
|
Netezza Math |
|
sin
|
Returns the sine of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
|
Netezza Math |
|
tan
|
Returns the tangent of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
|
Netezza Math |
|
nysiis
|
Returns a Soundex representation of "string_expression" using the New York State Identification and Intelligence System (NYSIIS) variation of Soundex.
|
Netezza Phonetic |
|
dbl_mp
|
Returns a composite 32-bit value of "string_expression".
|
Netezza Phonetic |
|
pri_mp
|
Returns the 4 character primary metaphone string from "numeric_expression" returned by dbl_mp.
|
Netezza Phonetic |
|
sec_mp
|
Returns the 4 character secondary metaphone string from "numeric_expression" returned by dbl_mp.
|
Netezza Phonetic |
|
score_mp
|
Returns a score for how closely "numeric_expression" and "numeric_expression2" match.
|
Netezza Phonetic |
|
(
|
Identifies the beginning of an expression.
|
Operators |
|
)
|
Identifies the end of an expression.
|
Operators |
|
*
|
Multiplies two numeric values.
|
Operators |
|
,
|
Separates expression components.
|
Operators |
|
/
|
Divides two numeric values.
|
Operators |
|
||
|
Concatenates, or joins, strings.
|
Operators |
|
+
|
Adds two numeric values.
|
Operators |
|
-
|
Subtracts two numeric values or negates a numeric value.
|
Operators |
|
<
|
that are less than "value2".
|
Operators |
|
<=
|
that are less than or equal to "value2".
|
Operators |
|
<>
|
that are not equal to "value2".
|
Operators |
|
=
|
that are equal to "value2".
|
Operators |
|
>
|
that are greater than "value2".
|
Operators |
|
->
|
Separates the components in a literal member expression.
|
Operators |
|
>=
|
that are greater than or equal to "value2".
|
Operators |
|
and
|
Returns "true" if the conditions on both sides of the expression are true.
|
Operators |
|
auto
|
in the query. The scope is context-dependent.
|
Operators |
|
between
|
Determines if a value falls in a given range.
|
Operators |
|
case
|
Works with when, then, else, and end. Case identifies the beginning of a specific situation, in which when, then, and else actions are defined.
|
Operators |
|
contains
|
Determines if "string1" contains "string2".
|
Operators |
|
currentMeasure
|
Keyword that can be used as the first argument of member summary functions. This function appears in the Total Revenue by Country sample report in the GO Data Warehouse (query) package.
|
Operators |
|
default
|
Works with the lookup construct.
|
Operators |
|
distinct
|
A keyword used in an aggregate expression to include only distinct occurrences of values. See also the function unique.
|
Operators |
|
end
|
Indicates the end of a case or when construct.
|
Operators |
|
ends with
|
Determines if "string1" ends with "string2".
|
Operators |
|
for
|
Works with summary expressions to define the scope of the aggregation in the query.
|
Operators |
|
for all
|
Works with summary expressions to define the scope to be all the specified grouping columns in the query. See also the for clause.
|
Operators |
|
for any
|
Works with summary expressions to define the scope to be adjusted based on a subset of the grouping columns in the query. Equivalent to the for clause.
|
Operators |
|
for report
|
Works with summary expressions to set the scope to be the whole query. See also the for clause. This function appears in the Customer Returns and Satisfaction sample report in the GO Data Warehouse (analysis) package.
|
Operators |
|
if
|
Works with the then and else constructs. If defines a condition; when the if condition is true, the then expression is used. When the if condition is not true, the else expression is used. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
|
Operators |
|
in
|
Determines if "expression1" exists in a given list of expressions.
|
Operators |
|
in_range
|
Determines if "expression1" exists in a given list of constant values or ranges.
|
Operators |
|
is missing
|
Determines if "value" is undefined in the data.
|
Operators |
|
is null
|
Determines if "value" is undefined in the data.
|
Operators |
|
is not missing
|
Determines if "value" is defined in the data.
|
Operators |
|
is not null
|
Determines if "value" is defined in the data.
|
Operators |
|
like
|
Determines if "string1" matches the pattern of "string2".
|
Operators |
|
lookup
|
Finds and replaces data with a value you specify. It is preferable to use the case construct.
|
Operators |
|
not
|
Returns TRUE if "argument" is false or returns FALSE if "argument" is true.
|
Operators |
|
or
|
Returns TRUE if either of "argument1" or "argument2" are true.
|
Operators |
|
prefilter
|
Performs a summary calculation before applying the summary filter.
|
Operators |
|
rows
|
Counts the number of rows output by the query. Use with Count ().
|
Operators |
|
starts with
|
Determines if "string1" starts with "string2".
|
Operators |
|
then
|
Works with the if or case constructs. When the if condition or the when expression are true, the then expression is used. This function appears in the Top 10 Retailers for 2005 sample report in the GO Data Warehouse (analysis) package.
|
Operators |
|
when
|
Works with the case construct. You can define conditions to occur when the when expression is true.
|
Operators |
|
add_months
|
Returns the datetime resulting from adding "integer_expression" months to "date_expression".
|
Oracle |
|
ascii
|
Returns a number representing the ASCII code value of the leftmost character of "string_expression".
|
Oracle |
|
ceil
|
Returns the smallest integer greater than or equal to "numeric_expression".
|
Oracle |
|
char_length
|
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.
|
Oracle |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
Oracle |
|
concat
|
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
|
Oracle |
|
decode
|
Compares "expression" to each search value one by one. If "expression" is equal to a search, then it returns the corresponding result. If no match is found, it returns "default", or if "default" is omitted, it returns null.
|
Oracle |
|
dump
|
Returns internal representation of "expression" with the format of "numeric_expression1" starting from position "numeric_expression2" for "numeric_expression3" characters.
|
Oracle |
|
greatest
|
Returns the greatest value in "expression_list".
|
Oracle |
|
initcap
|
Returns "string_expression" with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
|
Oracle |
|
instr
|
Searches "string_expression1" starting at position "integer_expression1" for the "integer_expression2" occurrence of "string_expression2". If "integer_expression1" is negative, then the search occurs backwards from the end of "string_expression1". Returns an integer indicating the position of "string_expression2".
|
Oracle |
|
instrb
|
Searches "string_expression1" starting at position "integer_expression1" for the "integer_expression2" occurrence of "string_expression2". If "integer_expression1" is negative, then the search occurs backwards from the end of "string_expression1". Returns the position (byte number) where "string_expression2" was found.
|
Oracle |
|
least
|
Returns the least value in "expression_list".
|
Oracle |
|
length
|
Returns the number of characters in "string_expression".
|
Oracle |
|
lengthb
|
Returns the number of bytes in "string_expression".
|
Oracle |
|
lpad
|
Returns "string_expression1" left-padded to the length defined by "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
|
Oracle |
|
ltrim
|
Returns "string_expression1" with leading characters removed up to the first character not in "string_expression2".
|
Oracle |
|
months_between
|
Returns the number of months from "date_expression1" to "date_expression2". If "date_expression1" is later than "date_expression2" then the result will be a positive number. The days and time portion of the difference are ignored, so the months are not rounded unless "date_expression1" and "date_expression2" are the last days of a month.
|
Oracle |
|
new_time
|
Returns the datetime in "new_timezone" for "datetime_expression" in "old_timezone". "Old_timezone" and "new_timezone" can be one of 'AST', 'ADT', 'BST', 'BDT', 'CST', 'CDT', 'EST', 'EDT', 'HST', 'HDT', 'MST', 'MDT', 'NST', 'PST', 'PDT', 'YST', or 'YDT'.
|
Oracle |
|
next_day
|
Returns the datetime of the first weekday named by "string_expression" that is later than "datetime_ expression". The return value has the same format as "datetime_expression".
|
Oracle |
|
nls_initcap
|
Returns "string_expression1" 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. "String_expression2" specifies the sorting sequence.
|
Oracle |
|
nls_lower
|
Returns "string_expression1" with all letters in lowercase. "String_expression2" specifies the sorting sequence.
|
Oracle |
|
nls_upper
|
Returns "string_expression1" with all letters in uppercase. "String_expression2" specifies the sorting sequence.
|
Oracle |
|
nvl
|
Returns "expression" unless it is null. If "expression" is null, returns "constant". Valid for "numeric_ expression", "string_expression", "date_expression", and "time_expression".
|
Oracle |
|
replace
|
Replaces all occurrences of "string_expression2" in "string_expression1" with "string_expression3". If "string_expression3" is not specified, then it removes all occurrences of "string_expression2".
|
Oracle |
|
round
|
Returns "numeric_expression" rounded to the nearest value "integer_expression" places right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
|
Oracle |
|
rpad
|
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then occurrences of "string_expression2" are replaced with spaces.
|
Oracle |
|
rtrim
|
Returns "string_expression1" with the final characters removed after the last character not in "string_expression2". If "string_expression2" is not specified, the final space characters are removed.
|
Oracle |
|
sign
|
Returns an indicator of the sign of "numeric_expression", +1 if positive, 0 if zero, or -1 if negative.
|
Oracle |
|
soundex
|
Returns a character string containing the phonetic representation of "string_expression".
|
Oracle |
|
substr
|
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters or to the end of "string_expression" if "integer_expression2" is omitted. The first character in "string_expression" is at position 1.
|
Oracle |
|
substrb
|
Returns the substring of "string_expression" that starts at position "numeric_expression1" and ends after "numeric_expression2" bytes. The first byte in "string_expression" is at position 1. If you omit "numeric_expression2", returns the substring of "string_expression" that starts at position "numeric_expression1" and ends at the end of "string_expression".
|
Oracle |
|
{sysdate}
|
Returns a datetime value representing the current date and time of the computer that the database software runs on.
|
Oracle |
|
to_char
|
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value.
|
Oracle |
|
to_date
|
Converts "string_expression1" to a datetime value as specified by the format "string_expression2". "String_expression3" specifies the format elements, such as language.
|
Oracle |
|
to_number
|
Converts "string_expression1" to a numeric value as specified by the format "string_expression2". "String_expression3" specifies the format elements, such as currency information.
|
Oracle |
|
translate
|
Returns "string_expression1" with all occurrences of each character in "string_expression2" replaced by the corresponding character in "string_expression3".
|
Oracle |
|
trunc
|
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.
|
Oracle |
|
trunc
|
Truncates digits from "numeric_expression1" using "numeric_expression2" as the precision.
|
Oracle |
|
{user}
|
Returns the username of the current Oracle user.
|
Oracle |
|
vsize
|
Returns the number of bytes in the internal representation of "expression". "Expression" must be a string expression.
|
Oracle |
|
log
|
Returns the logarithm of "numeric_expression2" to the base "numeric_expression1".
|
Oracle Math |
|
sinh
|
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" can be any real number.
|
Oracle Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Oracle Trigonometry |
|
tanh
|
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" can be any real number.
|
Oracle Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Oracle Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Oracle Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
Oracle Trigonometry |
|
atan2
|
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_ expression2" / "numeric_expression1".
|
Oracle Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Oracle Trigonometry |
|
cosh
|
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Oracle Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Oracle Trigonometry |
|
to_char
|
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value.
|
Paraccel Data type formatting |
|
to_date
|
Converts "string_expression1" to a date value as specified by the format "string_expression2".
|
Paraccel Data type formatting |
|
to_number
|
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
|
Paraccel Data type formatting |
|
translate
|
Returns "string_expression1", with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
|
Paraccel Data type formatting |
|
version
|
Returns the string value of the database version.
|
Paraccel Data type formatting |
|
cbrt
|
Returns the cube root of "numeric_expression1".
|
Paraccel Math |
|
pi
|
Returns the constant of pi.
|
Paraccel Math |
|
overlay
|
Returns the "string_expression1", replacing "string_expression2" from character position numeric_expression.
|
Paraccel String |
|
ltrim
|
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
|
Paraccel String |
|
replace
|
Returns "string_expression", having replaced "string_expression2" with "string_expression3".
|
Paraccel String |
|
rtrim
|
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
|
Paraccel String |
|
current_database
|
Returns the name of the current database.
|
Paraccel String |
|
current_schema
|
Returns the name of the current schema
|
Paraccel String |
|
{current_user}
|
|
Paraccel String |
|
{session_user}
|
|
Paraccel String |
|
to_char
|
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value.
|
Postgres Data type formatting |
|
to_date
|
Converts "string_expression1" to a date value as specified by the format "string_expression2".
|
Postgres Data type formatting |
|
to_number
|
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
|
Postgres Data type formatting |
|
to_timestamp
|
Converts "string_expression1" to a timestamp value as specified by the format "string_expression2".
|
Postgres Data type formatting |
|
translate
|
Returns "string_expression1", with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
|
Postgres Data type formatting |
|
date_trunc
|
Returns the timestamp to the specified precision.
|
Postgres Data type formatting |
|
version
|
Returns the string value of the database version.
|
Postgres Data type formatting |
|
log
|
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
|
Postgres Math |
|
ln
|
Returns the natural logarithm of "numeric_expression1".
|
Postgres Math |
|
cbrt
|
Returns the cube root of "numeric_expression1".
|
Postgres Math |
|
div
|
Returns the integer quotient of "numeric_expression1" divided by "numeric_expression2".
|
Postgres Math |
|
pi
|
Returns the constant of pi.
|
Postgres Math |
|
overlay
|
Returns the "string_expression1" replacing "string_expression2" from character position numeric_expression.
|
Postgres String |
|
btrim
|
Returns string_expression1 after removing the longest string of characters in "string_expression2".
|
Postgres String |
|
initcap
|
Returns "string_expression", with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
|
Postgres String |
|
lpad
|
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
|
Postgres String |
|
ltrim
|
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
|
Postgres String |
|
md5
|
Returns the MD5 hash of "string_expression1".
|
Postgres String |
|
to_hex
|
Returns the hexadecimal string representation of "numeric_expression1".
|
Postgres String |
|
repeat
|
Returns the "string_expression" repeated "numeric_expression1" times.
|
Postgres String |
|
replace
|
Returns "string_expression" with "string_expression2" replaced with "string_expression3".
|
Postgres String |
|
rpad
|
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
|
Postgres String |
|
rtrim
|
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
|
Postgres String |
|
split_part
|
Returns "numeric_expression" field having split "string_expression1" on "string_expression2".
|
Postgres String |
|
ascii
|
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
|
Postgres String |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
Postgres String |
|
{current_catalog}
|
|
Postgres String |
|
{current_db}
|
|
Postgres String |
|
{current_schema}
|
|
Postgres String |
|
{current_user}
|
|
Postgres String |
|
{session_user}
|
|
Postgres String |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Postgres Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Postgres Trigonometry |
|
atan2
|
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_ expression2" / "numeric_expression1".
|
Postgres Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
Postgres Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Postgres Trigonometry |
|
cot
|
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Postgres Trigonometry |
|
degrees
|
Returns the degrees where "numeric_expression" is an angle expressed in radians.
|
Postgres Trigonometry |
|
radians
|
Returns the radians where "numeric_expression" is an angle expressed in degrees.
|
Postgres Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Postgres Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Postgres Trigonometry |
|
ceil
|
Returns the smallest integer greater than or equal to "numeric_expression" or "string_expression". Note that "string_expression" must represent a valid numeric value.
|
Red Brick |
|
concat
|
Returns a string that is the result of concatenating, or joining, "string_expression1" to "string_ expression2".
|
Red Brick |
|
date
|
Returns a date value. "Expression" can be either characters or a timestamp.
|
Red Brick |
|
dateadd
|
Adds "interval" to "datetime_expression" and returns a result that is the same datetime data type as "datetime_expression". "Datepart" refers to the year, month, day, hour, minute, second. "Interval" must be an integer and "datetime_expression" can be a date, time, or timestamp.
|
Red Brick |
|
datediff
|
Determines the difference between two datetime expressions and returns an integer result in "datepart" units. "Datepart" refers to a year, month, day, hour, minute, or second. "Datetime_ expression1" and "datetime_expression2" can be dates, times, or timestamps.
|
Red Brick |
|
datename
|
Extracts "datepart" of "datetime_expression" and returns its value as a character string. "Datepart" refers to a year, month, day, hour, minute, or second. "Datetime_expression" can be a date, a time, or a timestamp.
|
Red Brick |
|
dec
|
Converts "expression" to a decimal value with the data type decimal (precision, scale). The default value of precision is 9. The default value of scale is 0.
|
Red Brick |
|
decimal
|
Converts "expression" to a decimal value with the data type decimal (precision, scale). The default value of precision is 9. The default value of scale is 0.
|
Red Brick |
|
decode
|
Compares and converts "expression" to another value. If "expression" matches "target", it is replaced, otherwise it is replaced by "default" or null if no default is specified. The expressions can be any data type as long as they are all the same data type.
|
Red Brick |
|
float
|
Converts "numeric_expression" into a double-precision floating-point value.
|
Red Brick |
|
ifnull
|
Tests "expression" for missing values and replaces each one with "substitute". If "expression" is null, "substitute" is returned, otherwise it returns the value of "expression". The expressions can be any data type as long as they are all the same data type.
|
Red Brick |
|
int
|
Converts "numeric_expression" into an integer value and returns an integer value. If "numeric_ expression" is null, it returns null.
|
Red Brick |
|
integer
|
Converts "numeric_expression" into an integer value and returns an integer value. If "numeric_ expression" is null, it returns null.
|
Red Brick |
|
length
|
Returns an integer result specifying the number of characters in "string_expression". If "string_expression" is null, it returns null.
|
Red Brick |
|
lengthb
|
Returns an integer result specifying the number of bytes in "string_expression". If "string_expression" is null, it returns null.
|
Red Brick |
|
ltrim
|
Removes leading blanks from "string_expression". If "string_expression" is null, it returns null.
|
Red Brick |
|
nullif
|
Returns null if both "expression1" and "expression2" have the same value. If they have different values, the value of "expression1" is returned. "Expression1" and "expression2" can be any data type as long as they are the same data type.
|
Red Brick |
|
positionb
|
Returns an integer that is relative to the beginning byte position of "string_expression1" in "string_ expression2". If "string_expression1" is not located, the result is 0. If "string_expression1" is of zero length, the result is 1. If "string_expression1" is null, an error message is returned. If "string_ expression2" is null, the result is 0.
|
Red Brick |
|
real
|
Returns a real value. If "numeric_expression" is null, it returns null.
|
Red Brick |
|
round
|
Returns "numeric_expression" rounded to the nearest value "integer_expression" places to the right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value "integer_expression" places to the left of the decimal point. Rounding takes place before data formatting is applied.
|
Red Brick |
|
rtrim
|
Removes trailing blanks from "string_expression". If "string_expression" is null, it returns null.
|
Red Brick |
|
sign
|
Determines the sign of "numeric_expression", and returns 1 for a positive value, –1 for a negative value, and 0 for zero.
|
Red Brick |
|
string
|
Converts "expression" to a character string. "Expression" can be either numeric or datetime.
|
Red Brick |
|
substr
|
Returns a substring of "string_expression" that begins at position "start_integer" and continues for "length_integer" characters. If "length_integer" is not specified, a substring from "start_integer" to the end of "string_expression" is returned.
|
Red Brick |
|
substrb
|
Returns a substring of "string_expression" that begins at position "start_integer" and continues for "length_integer" bytes. If "length_integer" is not specified, a substring from "start_integer" to the end of "string_expression" is returned.
|
Red Brick |
|
time
|
Creates a time value from "expression", which can be a character string or a time-stamp data type expression.
|
Red Brick |
|
timestamp
|
Creates a time-stamp value from "timestamp_expression", which is a character string.
|
Red Brick |
|
timestamp
|
Creates a time-stamp value from "time_expression" and "date_expression". If either "time_expression" or "date_expression" is null, the resulting time-stamp expression is also null.
|
Red Brick |
|
to_char
|
Converts "source_date" to the character string specified by "format_string". "Source_date" can be a date, time, or timestamp data type.
|
Red Brick |
|
_add_days
|
Returns the datetime resulting from adding "integer_expression" days to "timestamp_expression".
|
Report Functions |
|
_add_months
|
Returns the datetime resulting from adding "integer_expression" months to "timestamp_expression".
|
Report Functions |
|
_add_years
|
Returns the datetime resulting from adding "integer_expression" years to "timestamp_expression".
|
Report Functions |
|
_age
|
Returns a number by subtracting "timestamp_expression" from today's date.
|
Report Functions |
|
_day_of_week
|
Returns the day of the week (between 1 and 7) for "timestamp_expression" where "integer_ expression" indicates which day of that week is day 1. To determine "integer_expression", choose the day of the week and count from Monday; for example, if you choose Wednesday, "integer_ expression" would be 3 because Wednesday is the third day from Monday.
|
Report Functions |
|
_day_of_year
|
Returns the ordinal for the day of the year in "timestamp_ expression" (1 to 366). Also known as Julian day.
|
Report Functions |
|
_days_between
|
Returns a positive or negative number representing the number of days between "timestamp_ expression1" and "timestamp_expression2". If "timestamp_expression1" < "timestamp_expression2", the result will be a negative number.
|
Report Functions |
|
_days_to_end_of_month
|
Returns a number representing the number of days remaining in the month represented by "timestamp_ expression".
|
Report Functions |
|
_first_of_month
|
Returns a datetime that is the first day of the month represented by "timestamp_expression".
|
Report Functions |
|
_last_of_month
|
Returns a datetime that is the last day of the month represented by "timestamp_expression".
|
Report Functions |
|
_make_timestamp
|
Returns a timestamp constructed from "integer_expression1" (the year), "integer_expression2" (the month), and "integer_expression3" (the day). The time portion defaults to 00:00:00.000 .
|
Report Functions |
|
_months_between
|
Returns a positive or negative number representing the number of months between "timestamp_ expression1" and "timestamp_expression2". If "timestamp_expression1" < "timestamp_expression2", the result will be a negative number.
|
Report Functions |
|
_week_of_year
|
Returns the week number (1-53) of the year for "timestamp_expression". According to the ISO 8601, week 1 of the year is the first week to contain a Thursday, which is equivalent to the first week containing January 4th. A week starts on a Monday (day 1) and ends on a Sunday (day 7).
|
Report Functions |
|
_years_between
|
Returns a positive or negative integer representing the number of years between "timestamp_ expression1" and "timestamp_expression2". If "timestamp_expression1" < "timestamp_expression2", a negative value is returned.
|
Report Functions |
|
_ymdint_between
|
Returns a number representing the difference between "timestamp_expression1" and "timestamp_ expression2". This value has the form YYMMDD, where YY represents the number of years,MM represents the number of months, and DD represents the number of days.
|
Report Functions |
|
abs
|
Returns the absolute value of "numeric_expression". If "numeric_expression" is negative, a positive value is returned.
|
Report Functions |
|
AsOfDate
|
Returns the date value of the AsOfDate expression, if it is defined. Otherwise, AsOfDate returns the report execution date.
|
Report Functions |
|
AsOfTime
|
Returns the time value of the AsOfTime expression, if it is defined. Otherwise, AsOfTime returns the report execution time.
|
Report Functions |
|
BurstKey
|
Returns the burst key.
|
Report Functions |
|
BurstRecipients
|
Returns the distribution list of burst recipients.
|
Report Functions |
|
ceiling
|
Returns the smallest integer that is greater than or equal to "numeric_expression".
|
Report Functions |
|
CellValue
|
Returns the value of the current crosstab cell.
|
Report Functions |
|
character_length
|
Returns the number of characters in "string_expression".
|
Report Functions |
|
ColumnNumber
|
Returns the current column number.
|
Report Functions |
|
CubeCreatedOn
|
Returns the date and time when the cube was created. "Dimension" specifies from which cube to retrieve the metadata. If the dimension source is an IBM® Cognos® PowerCube (.mdc), the function returns a blank string because the initial creation date of a PowerCube is not maintained.
|
Report Functions |
|
CubeCurrentPeriod
|
Returns the current period for the cube. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
CubeDataUpdatedOn
|
Returns the date time that data in the cube was last updated. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
CubeDefaultMeasure
|
Returns the name of the default measure for the cube. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
CubeDescription
|
Returns the description of the cube. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
CubeIsOptimized
|
Returns "true" if the cube is optimized. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
CubeName
|
Returns the name of the cube. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
CubeSchemaUpdatedOn
|
Returns the date time that the cube schema was last updated. "Dimension" specifies from which cube to retrieve the metadata.
|
Report Functions |
|
exp
|
Returns the constant 'e' raised to the power of "numeric_expression". The constant 'e' is the base of the natural logarithm.
|
Report Functions |
|
extract
|
Returns an integer representing the value of "date_part_expression" in "datetime_expression". "Date_part_expression" could be the year, month, day, hour, minute, or second.
|
Report Functions |
|
floor
|
Returns the largest integer that is less than or equal to "numeric_expression".
|
Report Functions |
|
GetLocale
|
Returns the run locale (deprecated).
|
Report Functions |
|
HorizontalPageCount
|
Returns the current horizontal page count.
|
Report Functions |
|
HorizontalPageNumber
|
Returns the current horizontal page number.
|
Report Functions |
|
InScope
|
Returns Boolean 1 (true) when the cell is in the scope of the data items and MUNs; otherwise, returns Boolean 0 (false).
|
Report Functions |
|
IsAccessible
|
Returns Boolean 1 (true) if the report is run with the accessibility features enabled. Use this function as a variable expression with a conditional block to make your reports accessible. For example, you can add a list or crosstab equivalent to a chart in reports that are run with accessibility features enabled.
|
Report Functions |
|
IsBursting
|
Returns Boolean 1 (true) when the report will be distributed to the recipient; otherwise, returns Boolean 0 (false).
|
Report Functions |
|
IsCrosstabColumnNodeMember
|
Returns Boolean 1 (true) if the current node is a crosstab column node member.
|
Report Functions |
|
IsCrosstabRowNodeMember
|
Returns Boolean 1 (true) if the current node is a crosstab row node member.
|
Report Functions |
|
IsFirstColumn
|
Returns Boolean 1 (true) if the current column is the first column.
|
Report Functions |
|
IsInnerMostCrosstabColumnNodeMember
|
Returns Boolean 1 (true) if the current node is an innermost crosstab column node member.
|
Report Functions |
|
IsInnerMostCrosstabRowNodeMember
|
Returns Boolean 1 (true) if the current node is an innermost crosstab row node member.
|
Report Functions |
|
IsLastColumn
|
Returns Boolean 1 (true) if the current column is the last column.
|
Report Functions |
|
IsLastInnerMostCrosstabColumnNodeMember
|
Returns Boolean 1 (true) if the current node is the last innermost crosstab column node member.
|
Report Functions |
|
IsLastInnerMostCrosstabRowNodeMember
|
Returns Boolean 1 (true) if the current node is the last innermost crosstab row node member.
|
Report Functions |
|
IsOuterMostCrosstabColumnNodeMember
|
Returns Boolean 1 (true) if the current node is an outermost crosstab column node member.
|
Report Functions |
|
IsOuterMostCrosstabRowNodeMember
|
Returns Boolean 1 (true) if the current node is an outermost crosstab row node member.
|
Report Functions |
|
IsPageCountAvailable
|
Returns Boolean 1 (true) if the page count is available for the current execution of the report; otherwise, returns Boolean 0 (false).
|
Report Functions |
|
ln
|
Returns the natural logarithm of "numeric_expression".
|
Report Functions |
|
Locale
|
Returns the run locale.
|
Report Functions |
|
lower
|
Returns "string_expression" with all uppercase characters converted to lowercase. This function appears in the Bursted Sales Performance Report sample report in the GO Data Warehouse (query) package.
|
Report Functions |
|
mapNumberToLetter
|
Adds "integer_expression" to "string_expression".
|
Report Functions |
|
mod
|
Returns an integer value representing the remainder (modulo) of "integer_expression1" / "integer_ expression2".
|
Report Functions |
|
ModelPath
|
Returns the model path.
|
Report Functions |
|
Now
|
Returns the current system time.
|
Report Functions |
|
nullif
|
Returns null if "string_expression1" equals "string_expression2" (case-insensitive), otherwise returns "string_expression1".
|
Report Functions |
|
octet_length
|
Returns the number of bytes in "string_expression".
|
Report Functions |
|
PageCount
|
Returns the current page count. This function works only when the report output is Adobe® PDF or Microsoft® Excel. If you save the report output, this function works for all formats.
|
Report Functions |
|
PageName
|
Returns the current page name.
|
Report Functions |
|
PageNumber
|
Returns the current page number.
|
Report Functions |
|
ParamCount
|
Returns the parameter count of "parameterName".
|
Report Functions |
|
ParamDisplayValue
|
Returns a string that is the parameter display value of "parameterName". This function appears in the Recruitment Report sample report in the GO Data Warehouse (analysis) package.
|
Report Functions |
|
ParamName
|
Returns the parameter name of "parameterName".
|
Report Functions |
|
ParamNames
|
Returns all parameter names.
|
Report Functions |
|
ParamValue
|
Returns the parameter value of "parameterName".
|
Report Functions |
|
position
|
Returns the integer value representing the starting position of "string_expression1" in "string_ expression2". Returns 0 if "string_expression1" is not found.
|
Report Functions |
|
power
|
Returns "numeric_expression1" raised to the power of "numeric_expression2".
|
Report Functions |
|
ReportAuthorLocale
|
Returns the author locale.
|
Report Functions |
|
ReportCreateDate
|
Returns the date when the report was created.
|
Report Functions |
|
ReportDate
|
Returns the report execution date and time.
|
Report Functions |
|
ReportDescription
|
Returns the report description. This function works only when the report is run from IBM® Cognos® Connection.
|
Report Functions |
|
ReportID
|
Returns the report ID.
|
Report Functions |
|
ReportLocale
|
Returns the run locale.
|
Report Functions |
|
ReportName
|
Returns the report name. This function works only when the report is run from IBM® Cognos® Connection.
|
Report Functions |
|
ReportOption
|
Returns the value of the run option variable identified by "optionName", such as attachmentEncoding, burst, cssURL, email, emailAsAttachment, emailAsURL, emailBody, emailSubject, emailTo, emailToAddress, history, metadataModel, outputEncapsulation, outputFormat, outputLocale, outputPageDefinition, outputPageOrientation, primaryWaitThreshold, print, printer, printerAddress, prompt, promptFormat, saveAs, saveOutput, secondaryWaitThreshold, verticalElements, or xslURL.
|
Report Functions |
|
ReportOutput
|
Returns the name of the output format, such as CSV, HTML, layoutDataXML, MHT, PDF, rawXML, singleXLS, spreadsheetML, XLS, XML, or XLWA.
|
Report Functions |
|
ReportPath
|
Returns the report path. This function works only when the report is run from IBM® Cognos® Connection.
|
Report Functions |
|
ReportProductLocale
|
Returns the product locale.
|
Report Functions |
|
ReportSaveDate
|
Returns the date when the report was last saved.
|
Report Functions |
|
round
|
Returns "numeric_expression" rounded to the nearest value with "integer_expression" significant digits to the right of the decimal point. If "integer_expression" is negative, "numeric_expression" is rounded to the nearest absolute value with "integer_expression" significant digits to the left of the decimal point. Rounding takes place before data formatting is applied.
|
Report Functions |
|
RowNumber
|
Returns the current row.
|
Report Functions |
|
ServerLocale
|
Returns the locale of the server that runs the report.
|
Report Functions |
|
ServerName
|
Returns the name of the web server where the run request originated from. The value may be empty if the request is executed from the scheduler.
|
Report Functions |
|
sqrt
|
Returns the square root of "numeric_expression". "Numeric_expression" must not be a negative value.
|
Report Functions |
|
substring
|
Returns the substring of "string_expression" that starts at position "integer_expression1" for "integer_expression2" characters or to the end of "string_expression" if "integer_expression2" is -1. The first character in "string_expression" is at position 1.
|
Report Functions |
|
TOCHeadingCount
|
Returns the table of contents heading count for a specified heading level.
|
Report Functions |
|
Today
|
Returns the current system date.
|
Report Functions |
|
trim
|
Returns "string_expression" trimmed of any leading and trailing blanks or trimmed of the character specified by "match_character_expression". "Trim_what_expression" may be "leading", "trailing", or "both" (default). "Match_character_expression" can be an empty string to trim blanks or can specify a character to be trimmed.
|
Report Functions |
|
upper
|
Returns "string_expression" with all lowercase characters converted to uppercase.
|
Report Functions |
|
URLEncode
|
Returns the URL encoded value of the input text.
|
Report Functions |
|
log10
|
Returns the base ten logarithm of "numeric_expression".
|
SAP BW Math |
|
arccos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
SAP BW Trigonometry |
|
arcsin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
SAP BW Trigonometry |
|
arctan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
SAP BW Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SAP BW Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SAP BW Trigonometry |
|
coshyp
|
Returns the hyperbolic cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SAP BW Trigonometry |
|
sinhyp
|
Returns the hyperbolic sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SAP BW Trigonometry |
|
tanhyp
|
Returns the hyperbolic tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SAP BW Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SAP BW Trigonometry |
|
ascii
|
Returns a number representing the ascii code value of the leftmost character of "string_expression".
|
SQL Server |
|
char
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
SQL Server |
|
charindex
|
Searches "string_expression2" for the first occurrence of "string_expression1" and returns an integer. "Start_location" is the character position to start searching for "string_expression1" in "string_expression2". If "start_location" is not specified, is a negative number, or is zero, the search starts at the beginning of "string_expression2".
|
SQL Server |
|
{current_user}
|
Returns the name of the current user.
|
SQL Server |
|
datalength
|
Returns the length in bytes of "string_expression".
|
SQL Server |
|
dateadd
|
Returns the date resulting from the addition of "integer_expression" units (indicated by "datepart" (day, month, year)) to "date_expression".
|
SQL Server |
|
datediff
|
Returns the number of "datepart" (day, month, year) units between "date_expression1" and "date_expression2".
|
SQL Server |
|
datename
|
Returns "datepart" from "date_expression", which can be a datetime, smalldatetime, date, or time value as an ASCII string. Note that "datepart" must be a keyword representing a datepart or its abbreviation recognized by Microsoft® SQL Server and must be enclosed in curly brackets.
|
SQL Server |
|
datepart
|
Returns part of "date_expression" (for example, the month) as an integer. "date_expression" can be a datetime, smalldatetime, date, or time value. Note that "datepart" must be a keyword representing a datepart or its abbreviation recognized by Microsoft® SQL Server and must be enclosed in curly brackets.
|
SQL Server |
|
day
|
Returns the day portion of "date_expression". Same as extract (day from date_expression).
|
SQL Server |
|
difference
|
Returns an integer value representing the difference between the values returned by the data sourcespecific soundex function for "string_expression1" and "string_expression2". The value returned ranges from 0 to 4, with 4 indicating the best match. Note that 4 does not mean that the strings are equal.
|
SQL Server |
|
getdate
|
Returns a datetime value representing the current date and time of the computer that the database software runs on.
|
SQL Server |
|
left
|
Returns the leftmost "integer_expression" characters of "string_expression".
|
SQL Server |
|
ltrim
|
Returns "string_expression" with leading spaces removed.
|
SQL Server |
|
month
|
Returns the month portion of "date_expression". Same as extract (month from date_expression).
|
SQL Server |
|
patindex
|
Returns an integer that represents the starting position of the first occurrence of "string_expression1" in the "string_expression2". Returns 0 if "string_expression1" is not found. The % wildcard character must precede and follow "string_expression1", except when searching for first or last characters.
|
SQL Server |
|
replace
|
Replaces all occurrences of "string_expression2" in "string_expression1" with "string_expression3".
|
SQL Server |
|
replicate
|
Returns a string consisting of "string_expression" repeated "integer_expression" times.
|
SQL Server |
|
reverse
|
Returns "string_expression" in reverse order.
|
SQL Server |
|
right
|
Returns the rightmost "integer_expression" characters of "string_expression".
|
SQL Server |
|
round
|
Returns "numeric_expression" rounded to the nearest value "integer_expression" places to the right of the decimal point. Rounding takes place before data formatting is applied.
|
SQL Server |
|
rtrim
|
Returns "string_expression" with trailing spaces removed.
|
SQL Server |
|
sign
|
Returns an indicator of the sign "numeric_expression": +1 if "numeric_expression" is positive, 0 if zero or -1 if negative.
|
SQL Server |
|
soundex
|
Returns a four character string representing the sound of the words in "string_expression".
|
SQL Server |
|
space
|
Returns a string consisting of "integer_expression" spaces.
|
SQL Server |
|
str
|
Returns a string representation of "numeric_expression" where "integer_expression1" is the length of the string returned and "integer_expression2" is the number of decimal digits.
|
SQL Server |
|
stuff
|
Returns a string where "integer_expression2" characters have been deleted from "string_expression1" beginning at "integer_expression1", and where "string_expression2" has been inserted into "string_ expression1" at its start. The first character in a string is at position 1.
|
SQL Server |
|
year
|
Returns the year portion of "date_expression". Same as extract (year from date_expression).
|
SQL Server |
|
log
|
Returns the natural logarithm of "numeric_expression".
|
SQL Server Math |
|
log10
|
Returns the base ten logarithm of "numeric_expression".
|
SQL Server Math |
|
pi
|
Returns the constant value of pi as a floating point value.
|
SQL Server Math |
|
rand
|
Generates a random number using "integer_expression" as the seed value.
|
SQL Server Math |
|
rand
|
Generates a random number using "integer_expression" as a seed value.
|
SQL Server Math |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SQL Server Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SQL Server Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SQL Server Trigonometry |
|
degrees
|
Returns the degrees where "numeric_expression" is an angle expressed in radians.
|
SQL Server Trigonometry |
|
radians
|
Returns the radians where "numeric_expression" is an angle expressed in degrees.
|
SQL Server Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
SQL Server Trigonometry |
|
atn2
|
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".
|
SQL Server Trigonometry |
|
cot
|
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
SQL Server Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
SQL Server Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
SQL Server Trigonometry |
|
running-average
|
Returns the running average by row (including the current row) for a set of values. The "<foroption>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
running-count
|
Returns the running count by row (including the current row) for a set of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
running-difference
|
Returns a running difference by row, calculated as the difference between the value for the current row and the preceding row, (including the current row) for a set of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
running-maximum
|
Returns the running maximum by row (including the current row) for a set of values. The "<foroption>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
running-minimum
|
Returns the running minimum by row (including the current row) for a set of values. The "<foroption>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
running-total
|
Returns a running total by row (including the current row) for a set of values. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
standard-deviation
|
Returns the standard deviation of selected data items.
|
Summaries |
|
standard-deviation-pop
|
Computes the population standard deviation and returns the square root of the population variance.
|
Summaries |
|
total
|
Returns the total value of selected data items. Distinct is an alternative expression that is compatible with earlier versions of the product. This function appears in the Budget vs. Actual sample report in the GO Data Warehouse (analysis) package.
|
Summaries |
|
variance
|
Returns the variance of selected data items.
|
Summaries |
|
variance-pop
|
Returns the population variance of a set of numbers after discarding the nulls in this set.
|
Summaries |
|
aggregate
|
Returns a calculated value using the appropriate aggregation function based on the aggregation type of the expression.
|
Summaries |
|
average
|
Returns the average value of the selected data items.
|
Summaries |
|
count
|
Returns the number of selected data items excluding null values.
|
Summaries |
|
maximum
|
Returns the maximum value of selected data items.
|
Summaries |
|
median
|
Returns the median value of selected data items.
|
Summaries |
|
minimum
|
Returns the minimum value of selected data items.
|
Summaries |
|
percentage
|
Returns the percent of the total value for the selected data items.
|
Summaries |
|
percentile
|
Returns a value, on a scale from 0 to 100, that indicates the percent of a distribution that is equal to or below the selected data items.
|
Summaries |
|
quantile
|
Returns the rank of a value for the specified range. It returns integers to represent any range of ranks, such as 1 (highest) to 100 (lowest).
|
Summaries |
|
quartile
|
Returns the rank of a value, represented as integers from 1 (highest) to 4 (lowest), relative to a group of values.
|
Summaries |
|
rank
|
Returns the rank value of the selected data items. The type of ranking returned (Olympic, dense, or serial) is data source dependent. The sort order is optional; DESC is assumed by default.
|
Summaries |
|
moving-average
|
Returns a moving average by row for a specified set of values of over a specified number of rows. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
moving-total
|
Returns a moving total by row for a specified set of values over a specified number of rows. The "<for-option>" defines the scope of the function. The "at" option defines the level of aggregation and can be used only in the context of relational datasources.
|
Summaries |
|
ascii
|
Returns a number representing the ascii code value of the leftmost character of "string_expression".
|
Sybase |
|
char
|
Converts "integer_expression" to a character value. Char is usually used as the inverse of ascii where "integer_expression" must be between 0 and 255. If the resulting value is the first byte of a multibyte character, the character may be undefined.
|
Sybase |
|
charindex
|
Returns an integer that represents the starting position of "string_expression1" within "string_ expression2". If "string_expression1" is not found, zero is returned. If "string_expression1" contains wildcard characters, charindex treats them as literals.
|
Sybase |
|
datalength
|
Returns the length in bytes of "string_expression".
|
Sybase |
|
dateadd
|
Returns the date resulting from adding "integer_expression" units indicated by datepart (day, month, year) to "date_expression". Note that "datepart" must be enclosed in curly brackets.
|
Sybase |
|
datediff
|
Returns the number of units indicated by "datepart" (day, month, year) between "date_expression1" and "date_expression2". Note that "datepart" must be enclosed in curly brackets.
|
Sybase |
|
datename
|
Returns "datepart" of "date_expression" as an ASCII string. "Date_expression" can be a datetime, smalldatetime, date, or time value. Note that "datepart" must be enclosed in curly brackets.
|
Sybase |
|
datepart
|
Returns "datepart" of "date_expression" as an integer. "Date_expression" can be a datetime, smalldatetime, date, or time value. Note that the datepart argument must be enclosed in curly brackets.
|
Sybase |
|
day
|
Returns the day of the month (1-31) from "date_expression".
|
Sybase |
|
difference
|
Returns an integer value representing the difference between the values returned by the data sourcespecific soundex function for "string_expression1" and "string_expression2". The value that is returned ranges from 0 to 4, with 4 indicating the best match. Note that 4 does not mean that the strings are equal.
|
Sybase |
|
getdate
|
Returns current system date and time.
|
Sybase |
|
left
|
Returns the leftmost "integer_expression" characters of "string_expression".
|
Sybase |
|
ltrim
|
Returns "string_expression" with any leading spaces removed.
|
Sybase |
|
month
|
Returns the month number (1-12) from "date_expression".
|
Sybase |
|
patindex
|
Returns an integer representing the starting position of the first occurrence of "string_expression1" in "string_expression2" or returns 0 if "string_expression1" is not found. By default, patindex returns the offset in characters. The offset can be returned in bytes by setting the return type to bytes. The % wildcard character must precede and follow the pattern in "string_expression1", except when searching for first or last characters.
|
Sybase |
|
rand
|
Returns a random float value between 0 and 1, using the optional "integer_expression" as a seed value.
|
Sybase |
|
replicate
|
Returns a string with the same datatype as "string_expression", containing the same expression repeated "integer_expression" times or as many times as will fit into a 225-byte space, whichever is less.
|
Sybase |
|
reverse
|
Returns the reverse of "string_expression".
|
Sybase |
|
right
|
Returns the rightmost "integer_expression" characters of "string_expression".
|
Sybase |
|
round
|
Returns "numeric_expression" rounded to the nearest value "integer_expression" places to the right of the decimal point. Rounding takes place before data formatting is applied.
|
Sybase |
|
rtrim
|
Returns "string_expression" with trailing spaces removed.
|
Sybase |
|
soundex
|
Returns a four-character soundex code for character strings that are composed of a contiguous sequence of valid single- or double-byte Roman letter.
|
Sybase |
|
space
|
Returns a string with "integer_expression" single-byte spacing.
|
Sybase |
|
str
|
Returns a string representation of "numeric_expression". "Integer_expression1" is the length of the returned string and has a default setting of 10. "Integer_expression2" is the number of decimal digits and has a default setting of 0. Both are optional values.
|
Sybase |
|
stuff
|
Deletes "integer_expression2" characters from "string_expression1" starting at "integer_expression1", and inserts "string_expression2" into "string_expression1" at that position. To delete characters without inserting other characters, "string_expression2" should be null and not " ", which indicates a single space.
|
Sybase |
|
substring
|
Returns the substring of "string_expression" that starts at position "integer_expression1". "Integer_ expression2" specifies the number of characters in the substring.
|
Sybase |
|
to_unichar
|
Returns a unichar expression with the value "integer_expression". If "integer_expression" is in the range 0xD800..0xDFFF, the operation is aborted. If the "integer_expression" is in the range 0..0xFFFF, a single Unicode value is returned. If "integer_expression" is in the range 0x10000..0x10FFFF, a surrogate pair is returned.
|
Sybase |
|
uhighsurr
|
Returns 1 if the Unicode value at "integer_expression" is the high half of a surrogate pair (which should appear first in the pair). Otherwise, it returns 0. This function allows you to write explicit code for surrogate handling. Particularly, if a substring starts on a Unicode character where uhighsurr () is true, extract a substring of at least 2 Unicode values, as substr() does not extract just 1. Substr () does not extract half of a surrogate pair.
|
Sybase |
|
ulowsurr
|
Returns 1 if the Unicode value at "integer_expression" is the low half of a surrogate pair (which should appear second in the pair). Otherwise, it returns 0. This function allows you to explicitly code around the adjustments performed by substr (), stuff (), and right (). Particularly, if a substring ends on a Unicode value where ulowsurr () is true, extract a substring of 1 less characters (or 1 more), since substr () does not extract a string that contains an unmatched surrogate pair.
|
Sybase |
|
uscalar
|
Returns the Unicode scalar value for the first Unicode character in "string_expression". If the first character is not the high-order half of a surrogate pair, then the value is in the range 0..0xFFFF. If the first character is the high-order half of a surrogate pair, a second value must be a low-order half, and the return value is in the range 0x10000..0x10FFFF. If this function is called on a Unicode character expression containing an unmatched surrogate half, the operation is aborted.
|
Sybase |
|
year
|
Returns the year from date_expression.
|
Sybase |
|
log
|
Returns the natural logarithm of "numeric_expression".
|
Sybase Math |
|
log10
|
Returns the base ten logarithm of "numeric_expression".
|
Sybase Math |
|
pi
|
Returns the constant value of pi as a floating point value.
|
Sybase Math |
|
sign
|
Returns an indicator denoting the sign of "numeric_expression": +1 if "numeric_expression" is positive, 0 if "numeric_expression" is zero, or -1 if "numeric_expression" is negative.
|
Sybase Math |
|
atn2
|
Returns the angle, in radians, whose tangent is "numeric_expression1" / "numeric_expression2".
|
Sybase Trigonometry |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Sybase Trigonometry |
|
cot
|
Returns the cotangent of "numeric_expression", where "numeric_expression" is an angle expressed in radians.
|
Sybase Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Sybase Trigonometry |
|
degrees
|
Returns the degrees where "numeric_expression" is an angle expressed in radians.
|
Sybase Trigonometry |
|
radians
|
Returns the radians where "numeric_expression" is an angle expressed in degrees.
|
Sybase Trigonometry |
|
sin
|
Returns the sine of "numeric_exp" where "numeric_expression" is an angle expressed in radians.
|
Sybase Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Sybase Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
Sybase Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Sybase Trigonometry |
|
account
|
Returns the account string for the current user.
|
Teradata |
|
add_months
|
Returns the date or the datetime resulting from adding "integer_expression" months to "date_expression" or "datetime_expression".
|
Teradata |
|
bytes
|
Returns the number of bytes contained in "byte_expression". "Byte_expression" is restricted to BYTE or VARBYTE.
|
Teradata |
|
case_n
|
Evaluates "condition_expression_list" and returns the position of the first true condition, provided that no prior condition in the list evaluates to unknown. The keywords must be enclosed in curly brackets. No case is an optional condition that evaluates to true if every expression in the list evaluates to false. No case or unknown is an optional condition that evaluates to true if every expression in the list evaluates to false, or if an expression evaluates to unknown and all prior conditions in the list evaluate to false. Unknown is an optional condition that evaluates to true if an expression evaluates to unknown and all prior conditions in the list evaluate to false.
|
Teradata |
|
char2hexint
|
Returns the hexadecimal representation for "string_expression".
|
Teradata |
|
characters
|
Returns an integer value representing the number of logical characters or bytes contained in "string_ expression".
|
Teradata |
|
database
|
Returns the name of the default database for the current user.
|
Teradata |
|
date
|
Returns the current date.
|
Teradata |
|
format
|
Returns the declared format for "expression" as a variable character string of up to 30 characters.
|
Teradata |
|
index
|
Returns the starting position of "string_expression2" in "string_expression1".
|
Teradata |
|
log
|
Computes the base 10 logarithm of "numeric_expression". "Numeric_expression" must be a nonzero, positive, numeric expression.
|
Teradata |
|
nullif
|
Returns null if "scalar_expression1" and "scalar_expression2" are equal. Otherwise, it returns "scalar_expression1". "Scalar_expression1" and "scalar_expression2" can be any data type.
|
Teradata |
|
nullifzero
|
If "numeric_expression" is zero, converts it to null to avoid division by zero.
|
Teradata |
|
profile
|
Returns the current profile for the session or null if none.
|
Teradata |
|
random
|
Returns a random integer number for each row of the results table. "Lower_bound" and "upper_bound" are integer constants. The limits for "lower_bound" and "upper_bound" range from -2147483648 to 2147483647 inclusive. "Upper_bound" must be greater than or equal to "lower_bound".
|
Teradata |
|
role
|
Returns the current role for the session or null if none.
|
Teradata |
|
session
|
Returns the number of the session for the current user.
|
Teradata |
|
soundex
|
Returns a character string that represents the Soundex code for "string_expression".
|
Teradata |
|
substr
|
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 "integer_expression2" is omitted, returns the substring of "string_expression" that starts at position "integer_expression1" and ends at the end of "string_expression".
|
Teradata |
|
time
|
Returns the current time based on a 24-hour day.
|
Teradata |
|
type
|
Returns the data type defined for "expression".
|
Teradata |
|
user
|
Returns the user name of the current user.
|
Teradata |
|
vargraphic
|
Returns a character string that represents the vargraphic code for "string_expression".
|
Teradata |
|
zeroifnull
|
Converts data from null to 0 to avoid errors created by a null value. If "numeric_expression" is not null, returns the value of "numeric_expression". If "numeric_expression" is a character string, it is converted to a numeric value of float data type. If "numeric_expression" is null or zero, it returns zero.
|
Teradata |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Teradata Trigonometry |
|
atan2
|
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".
|
Teradata Trigonometry |
|
asinh
|
Returns the inverse hyperbolic sine of "numeric_expression" where "numeric_expression" can be any real number.
|
Teradata Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Teradata Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Teradata Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Teradata Trigonometry |
|
atan
|
Returns the arctangent of "numeric_expression" in radians. The arctangent is the angle whose tangent is "numeric_expression".
|
Teradata Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Teradata Trigonometry |
|
acosh
|
Returns the inverse hyperbolic cosine of "numeric_expression" where "numeric_expression" can be any real number equal to or greater than 1.
|
Teradata Trigonometry |
|
to_char
|
Returns the string representation of "expression" with the format of "string_expression". "Expression" can be either a date value or a numeric value.
|
Vertica Data type formatting |
|
to_date
|
Converts "string_expression1" to a date value as specified by the format "string_expression2".
|
Vertica Data type formatting |
|
to_number
|
Converts "string_expression1" to a numeric value as specified by the format "string_expression2".
|
Vertica Data type formatting |
|
to_timestamp
|
Converts "string_expression1" to a timestamp value as specified by the format "string_expression2".
|
Vertica Data type formatting |
|
translate
|
Returns "string_expression1", with each occurrence of each character in "string_expression2" replaced by its corresponding character in "string_expression3".
|
Vertica Data type formatting |
|
date_trunc
|
Returns the timestamp to the specified precision.
|
Vertica Data type formatting |
|
version
|
Returns the string value of the database version.
|
Vertica Data type formatting |
|
log
|
Returns the base 10 logarithm of "numeric_expression1" or logarithm to the base "numeric_ expression2".
|
Vertica Math |
|
ln
|
Returns the natural logarithm of "numeric_expression1".
|
Vertica Math |
|
cbrt
|
Returns the cube root of "numeric_expression1".
|
Vertica Math |
|
pi
|
Returns the constant of pi.
|
Vertica Math |
|
overlay
|
Returns the "string_expression1", replacing "string_expression2" from character position numeric_expression.
|
Vertica String |
|
btrim
|
Returns string_expression1 after removing the longest string of characters in string_expression2.
|
Vertica String |
|
initcap
|
Returns "string_expression", with the first letter of each word in uppercase and all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric.
|
Vertica String |
|
lpad
|
Returns "string_expression1" padded to length "integer_expression" with occurrences of "string_ expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned.
|
Vertica String |
|
ltrim
|
Returns "string_expression1", with leading characters removed up to the first character not in "string_expression2"; for example, ltrim ( 'xyxXxyAB' , 'xy' ) returns XxyAB.
|
Vertica String |
|
to_hex
|
Returns the hexadecimal string representation of "numeric_exp1".
|
Vertica String |
|
repeat
|
Returns the "string_expression" repeated "numeric_expression1" times.
|
Vertica String |
|
replace
|
Returns "string_expression" having replaced "string_expression2" with "string_expression3".
|
Vertica String |
|
rpad
|
Returns "string_expression1" right-padded to length "integer_expression" with occurrences of "string_expression2". If "string_expression1" is longer than "integer_expression", the appropriate portion of "string_expression1" is returned. If "string_expression2" is not specified, then spaces are used.
|
Vertica String |
|
rtrim
|
Returns "string_expression1", with final characters removed after the last character not in "string_ expression2"; for example, rtrim ( 'ABxXxyx' , 'xy' ) returns ABxX. If "string_expression2" is not specified, the final space characters are removed.
|
Vertica String |
|
ascii
|
Returns a number representing the ASCII code value of the leftmost character of "string_expression"; for example, ascii ( 'A' ) is 65.
|
Vertica String |
|
chr
|
Returns the character that has the ASCII code value specified by "integer_expression". "Integer_ expression" should be between 0 and 255.
|
Vertica String |
|
current_database
|
Returns the name of the current database.
|
Vertica String |
|
current_schema
|
Returns the name of the current schema
|
Vertica String |
|
{current_user}
|
|
Vertica String |
|
{session_user}
|
|
Vertica String |
|
cos
|
Returns the cosine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Vertica Trigonometry |
|
degrees
|
Returns "numeric_expression" radians converted to degrees.
|
Vertica Trigonometry |
|
radians
|
Returns the number of radians converted from "numeric_expression" degrees.
|
Vertica Trigonometry |
|
cot
|
Returns the cotangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Vertica Trigonometry |
|
tan
|
Returns the tangent of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Vertica Trigonometry |
|
sin
|
Returns the sine of "numeric_expression" where "numeric_expression" is an angle expressed in radians.
|
Vertica Trigonometry |
|
acos
|
Returns the arccosine of "numeric_expression" in radians. The arccosine is the angle whose cosine is "numeric_expression".
|
Vertica Trigonometry |
|
asin
|
Returns the arcsine of "numeric_expression" in radians. The arcsine is the angle whose sine is "numeric_expression".
|
Vertica Trigonometry |
|
atan2
|
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_ expression2" / "numeric_expression1".
|
Vertica Trigonometry |
|
asin
|
"Returns the arcsine of ""numeric_expression"" in radians. The arcsine is the angle whose sine is
""numeric_expression""." |
Greenplum Trigonometry |
|
atan
|
"Returns the arctangent of ""numeric_expression"" in radians. The arctangent is the angle whose
tangent is ""numeric_expression""." |
Greenplum Trigonometry |
|
atan2
|
"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_ expression2"" / ""numeric_expression1""." |
Greenplum Trigonometry |
|
cot
|
"Returns the cotangent of ""numeric_expression"" where ""numeric_expression"" is an angle expressed
in radians." |
Greenplum Trigonometry |
|
sin
|
"Returns the sine of ""numeric_expression"" where ""numeric_expression"" is an angle expressed in
radians." |
Greenplum Trigonometry |
|
tan
|
"Returns the tangent of ""numeric_expression"" where ""numeric_expression"" is an angle expressed
in radians." |
Greenplum Trigonometry |
|
sin
|
"Returns the sine of ""numeric_expression"" where ""numeric_expression"" is an angle expressed in
radians." |
MySQL Trigonometry |
|
tan
|
"Returns the tangent of ""numeric_expression"" where ""numeric_expression"" is an angle expressed
in radians." |
MySQL Trigonometry |
|
atanh
|
"Returns the inverse hyperbolic tangent of ""numeric_expression"" where ""numeric_expression"" can
be any real number between 1 and -1, excluding 1 and -1." |
Teradata Trigonometry |
|
cosh
|
"Returns the hyperbolic cosine of ""numeric_expression"" where ""numeric_expression"" can be any
real number." |
Teradata Trigonometry |
|
sinh
|
"Returns the hyperbolic sine of ""numeric_expression"" where ""numeric_expression"" can be any real
number." |
Teradata Trigonometry |
|
tanh
|
"Returns the hyperbolic tangent of ""numeric_expression"" where ""numeric_expression"" can be any
real number." |
Teradata Trigonometry |