B. List of Functions
The following table provides a list of functions.
No. |
Function |
Use |
||
---|---|---|---|---|
1 |
Set functions |
Determine the maximum value. |
||
2 |
Determine the minimum value. |
|||
3 |
Determine the sum of the retrieved values. |
|||
4 |
Determine the average of the retrieved values. |
|||
5 |
Determine the row count (number of results). |
|||
6 |
Determine the row count (number of results). |
|||
7 |
Determine the standard deviation of a population. |
|||
8 |
Determine the standard deviation of a sample. |
|||
9 |
Determine the variance of a population. |
|||
10 |
Determine the variance of a sample. |
|||
11 |
Determine the median of an ordered set of values. |
|||
12 |
Determine the percentile of an ordered set of values. |
|||
13 |
||||
14 |
Mathematical functions |
Trigonometric functions |
Return the sine (SIN trigonometric function) of the target data, which must be specified in radians. |
|
15 |
Return the cosine (COS trigonometric function) of the target data, which must be specified in radians. |
|||
16 |
Return the tangent (TAN trigonometric function) of the target data, which must be specified in radians. |
|||
17 |
Return the angle (in radians) that is the inverse sine of the target data, in the range -/2 to /2. |
|||
18 |
Return the angle (in radians) that is the inverse cosine of the target data, in the range 0 to . |
|||
19 |
Return the angle (in radians) that is the inverse tangent of the target data, in the range -/2 to /2. |
|||
20 |
Return the angle (in radians) that is the inverse tangent of y/x, in the range - to . |
|||
21 |
Return the hyperbolic sine of the target data. |
|||
22 |
Return the hyperbolic cosine of the target data. |
|||
23 |
Return the hyperbolic tangent of the target data. |
|||
24 |
Return the result of converting an angle from radians to degrees. |
|||
25 |
Return the result of converting an angle from degrees to radians. |
|||
26 |
Return the value of . |
|||
27 |
Exponent and logarithm |
Return the result of raising the target data to a specified power. |
||
28 |
Return the logarithm of the target data (antilogarithm) to the specified base. |
|||
29 |
Return the natural logarithm of the target data. |
|||
30 |
Return the result of raising the base of the natural logarithm to a power. |
|||
31 |
Numerical calculation |
Return the remainder after dividing the dividend by the divisor. |
||
32 |
Return the absolute value of the target data. |
|||
33 |
Return the square root of the target data. |
|||
34 |
Return the sign of the target data (+1 for positive, -1 for negative, 0 for 0). |
|||
35 |
Return pseudorandom numbers that follow a uniform distribution and are greater than or equal to the minimum specified value and less than the maximum specified value. |
|||
36 |
Return pseudorandom numbers that follow a uniform distribution and are greater than or equal to the value specified for the minimum value and less than the value specified for the maximum value. If an SQL statement contains multiple RANDOMCURSOR functions for which the same identification number is specified, those functions always return the same values. |
|||
37 |
Return pseudorandom numbers that follow a uniform distribution and are greater than or equal to the value specified for the minimum value and less than the value specified for the maximum value. If a query specification contains multiple RANDOMROW functions for which the same identification number is specified, those functions return the same values for each result row of the query specification. |
|||
38 |
Return pseudorandom numbers that follow a normal distribution with an average μ and a standard deviation σ. |
|||
39 |
Rounding |
Return the value of the target data rounded to the nth digit after the decimal point. |
||
40 |
Return a value that has been truncated to the specified number of decimal places. |
|||
41 |
Return the greatest integer that is equal to or less than the value of the target data. |
|||
42 |
Return the smallest integer that is equal to or greater than the target data. |
|||
43 |
Character string functions |
Character string retrieval |
Return whether character strings that meet the search condition expression are included in the target data. |
|
44 |
Concatenating character string data |
Concatenate two character string data items. |
||
45 |
Extracting a substring from character string data |
Extract a substring from a character string starting from any position in the character string data. |
||
46 |
Extract a substring from a character string starting from the beginning (leftmost position) of the character string data. |
|||
47 |
Extract a substring from a character string starting from the end (rightmost position) of the character string data. |
|||
48 |
Removing characters from character string data |
Remove instances of the specified characters from the target character string. The characters can be removed in any of the following ways:
|
||
49 |
Remove instances of the specified characters, starting from the beginning of the target character string. |
|||
50 |
Remove instances of the specified characters, starting from the end of the target character string. |
|||
51 |
Padding character strings |
Pad the beginning of the target data (from the left) with the padding character string up to the specified number of characters. |
||
52 |
Pad the end of the target data (from the right) with the padding character string up to the specified number of characters. |
|||
53 |
Replacement of character strings in character string data |
Replace any character string in the target data. All instances of the character string to be replaced in the target data are replaced with the replacement character string. |
||
54 |
Replacement of characters in character string data |
Replace any character in the target data. |
||
55 |
Number of characters in character string data |
Return the number of characters in the target character string. |
||
56 |
Starting position of a character string in character string data |
Search the target data for a character string and return the starting position of the string. |
||
57 |
Conversion between uppercase and lowercase letters |
Convert uppercase letters (A to Z) to lowercase letters (a to z) in character string data. |
||
58 |
Convert lowercase letters (a to z) to uppercase letters (A to Z) in character string data. |
|||
59 |
Datetime functions |
Return the difference between the start date and time and the end date and time. |
||
60 |
Return the day of the week that the specified date falls on. |
|||
61 |
Return the specified date as the number of days elapsed since January 1 of that year. |
|||
62 |
Extract a part (year, month, day, hour, minute, or second) from data representing the date and time. |
|||
63 |
Determine a person's age on a reference date given their birth date. |
|||
64 |
Return the date or datetime of the last day of the month specified in the datetime data. |
|||
65 |
Return the datetime data rounded to the unit specified in the datetime format. |
|||
66 |
Return the datetime data truncated to the unit specified in the datetime format. |
|||
67 |
Binary column functions |
Concatenating binary data |
Concatenate two binary data items. |
|
68 |
Extracting a substring from binary data |
Extract a substring from binary data starting from any position in the binary data. |
||
69 |
Bit operations on binary data |
Return the bitwise logical AND of two binary data items. |
||
70 |
Return the bitwise inclusive OR of two binary data items. |
|||
71 |
Return the bitwise logical NOT of a binary data item. |
|||
72 |
Return the bitwise exclusive OR of two binary data items. |
|||
73 |
Return the value resulting from shifting the bits of a binary data value to the left. |
|||
74 |
Return the value resulting from shifting the bits of a binary data value to the right. |
|||
75 |
Data conversion functions |
Convert the data type of the data. |
||
76 |
Convert the data type of the data. In addition, by specifying a datetime format or number format, you can control the conversion as follows.
|
|||
77 |
Return the character code of the first character of the target data as an integer value. |
|||
78 |
Return the character corresponding to a character code represented by the integer target data. |
|||
79 |
Convert binary data to a binary string representation (character string data consisting of 0 and 1). |
|||
80 |
Convert binary data to a hexadecimal string representation (character string data consisting of 0 to 9, and A to F). |
|||
81 |
NULL evaluation functions |
Evaluate the specified target data items in the order in which they are specified, and then return the first non-null value. |
||
82 |
||||
83 |
Compare target data 1 to target data 2 and return NULL if they are equal, or target data 1 if they are not equal. |
|||
84 |
Evaluate the specified target data items in the order in which they are specified, and then return the first non-null value. |
|||
85 |
Information acquisition functions |
Return the length of the target data in bytes. |
||
86 |
Comparison functions |
Compare the values in the target data and the comparison data one at a time, and if there is a match, return the corresponding return value. If no match is found between the target data and comparison data, this function returns the predefined return value. |
||
87 |
Compare the values in the target data and in the comparison data one at a time, and, if any value in the target data is less than the value in the comparison data, return the corresponding return value. If no value in the target data is less than any of the values in the comparison data, this function returns the predefined return value. |
|||
88 |
Return the greatest value among the specified target data. |
|||
89 |
Return the smallest value among specified target data. |
|||
90 |
Datetime information acquisition functions |
Return the current date. |
||
91 |
Return the current time. |
|||
92 |
Return the current time stamp (date and time). |
|||
93 |
User information acquisition function |
Return the authorization identifier of the currently executing HADB user. |