| Description |
SQL Server |
Oracle |
| Analytic |
| Running average |
AVG |
AVG |
| Coefficient of correlation |
No Equivalent |
CORR |
| Running count by partition |
COUNT & COUNT_BIG |
COUNT |
| Population covariance of a set of pairs |
No Equivalent |
COVAR_COUNT |
| Sample covariance of a set of pairs |
No Equivalent |
COVAR_SAMP |
| Cumulative distribution in a group |
No Equivalent |
CUME_DIST |
| Rank within a group without gaps |
DENSE_RANK |
DENSE_RANK |
| Row ranked first by DENSE RANK |
No Equivalent |
FIRST |
| First value of an ordered set |
No Equivalent |
FIRST_VALUE |
| Provides access to a row by offset |
No Equivalent |
LAG |
| Row ranked last by DENSE RANK |
No Equivalent |
LAST_VALUE |
| Provides access to a row by offset |
No Equivalent |
LEAD |
| Maximum value by partition |
MAX |
MAX |
| Minimum value by partition |
MIN |
MIN |
| Divides an ordered dataset into buckets |
NTILE |
NTILE |
| Rowset partitioning |
OVER |
OVER |
| Calculates the value of r-1/rows-1 |
No Equivalent |
PERCENT_RANK |
| An inverse distribution function |
No Equivalent |
PERCENTILE_CONT |
| An inverse distribution function |
No Equivalent |
PERCENTILE_DISC |
| Rank of a value in a group |
RANK |
RANK |
| Computes ratio of a value to the sum of a set |
No Equivalent |
RATIO_TO_REPORT |
| Linear regression function |
No Equivalent |
REGR_AVGX |
| Linear regression function |
No Equivalent |
REGR_AVGY |
| Linear regression function |
No Equivalent |
REGR_COUNT |
| Linear regression function |
No Equivalent |
REGR_INTERCEPT |
| Linear regression function |
No Equivalent |
REGR_R2 |
| Linear regression function |
No Equivalent |
REGR_SLOPE |
| Linear regression function |
No Equivalent |
REGR_SXX |
| Linear regression function |
No Equivalent |
REGR_SXY |
| Linear regression function |
No Equivalent |
REGR_SYY |
| Assigns row numbers by partition |
ROW_NUMBER |
ROW_NUMBER |
| Sample standard deviation |
STDEV |
STDDEV |
| Square root of the population variance |
STDVP |
STDDEV_POP |
| Cumulative sample standard deviation |
No Equivalent |
STDDEV_SAMP |
| Cumulative running total |
SUM |
SUM |
| Population variance of a set |
VARP |
VAR_POP |
| Sample variance of a set |
No Equivalent |
VAR_SAMP |
| Variance of an expression |
VAR |
VARIANCE |
| Collection |
| Number of elements in a nested table |
No Equivalent |
CARDINALITY |
| Creates a nested table from selected rows |
No Equivalent |
COLLECT |
| Creates a nested table of nonempty subsets |
No Equivalent |
POWERMULTISET |
| As above: Of the specified cardinality |
No Equivalent |
POWERMULTISET_BY_CARDINALITY |
| Converts a nested table into a unique set |
No Equivalent |
SET |
| Conversion |
| ASCII string into the DB character set |
No Equivalent |
ASCIISTR |
| BFILE from directory + file name |
FILESTREAM |
BFILENAME |
| Bitvector to a number |
No Equivalent |
BIN_TO_NUM |
| One data type to another |
CAST & CONVERT |
CAST |
| String to a ROWID |
Not Relevant |
CHARTOROWID |
| String to a unicode string |
NCHAR |
COMPOSE |
| Convert one character set to another |
No Equivalent |
CONVERT |
| Unicode string to a string |
No Equivalent |
DECOMPOSE |
| Char containing hexadecimal digits to raw |
No Equivalent |
HEXTORAW |
| Number into a Day-to-Second interval |
No Equivalent |
NUMTODSINTERVAL |
| Number into a Year-to-Month interval |
No Equivalent |
NUMTOYMINTERVAL |
| A value to its hash |
No Equivalent |
ORA_HASH |
| RAW to CHAR |
No Equivalent |
RAW_TO_CHAR |
| Raw to hexadecimal containing string |
No Equivalent |
RAWTOHEX |
| RAW to NCHAR |
No Equivalent |
RAW_TO_NCHAR |
| Raw into a hexadecimal containing 'N' string |
No Equivalent |
RAWTONHEX |
| RAW to variable length string |
No Equivalent |
RAW_TO_VARCHAR2 |
| Raw to a hexadecimal object REF |
No Equivalent |
REFTOHEX |
| ROWID to CHAR |
Not Relevant |
ROWIDTOCHAR |
| ROWID to NCHAR |
Not Relevant |
ROWIDTONCHAR |
| Timestamp to its SCN equivalent |
Not Relevant |
SCNTOTIMESTAMP |
| RAW to NUMBER |
No Equivalent |
SYS_OP_RAWTONUM |
| Cast array to table |
No Equivalent |
TABLE |
| An SCN to its timestamp equivalent |
Not Relevant |
TIMESTAMPTOSCN |
| Cast to BINARY_DOUBLE |
CONVERT |
TO_BINARYDOUBLE |
| Cast to BINARY_FLOAT |
CONVERT |
TO_BINARYFLOAT |
| Cast to String |
STR |
TO_CHAR |
| Cast to CLOB data type |
No Equivalent |
TO_CLOB |
| Cast to DATE |
No Equivalent |
TO_DATE |
| Cast to Day-to-Second Interval |
No Equivalent |
TO_DSINTERVAL |
| LONG or LONG RAW to LOB |
No Equivalent |
TO_LOB |
| Single byte to corresponding multi-byte |
No Equivalent |
TO_MULTI_BYTE |
| Cast to NCHAR |
No Equivalent |
TO_NCHAR |
| Cast to NCLOB |
No Equivalent |
TO_NCLOB |
| Cast to NUMBER |
No Equivalent |
TO_NUMBER |
| Multi-byte to corresponding single byte |
No Equivalent |
TO_SINGLE_BYTE |
| Convert to TIMESTAMP data type |
No Equivalent |
TO_TIMESTAMP |
| To TIMESTAMP WITH TIMEZONE data type |
No Equivalent |
TO_TIMESTAMP_TZ |
| Convert to Year-to-Month Interval data type |
No Equivalent |
TO_YMINTERVAL |
| Changes character set |
No Equivalent |
TRANSLATE_USING |
| Integer value based on Unicode standard |
UNICODE |
No Equivalent |
| String to UTF8 or UTF16 |
No Equivalent |
UNISTR |
| Data Mining |
| Cluster ID of the cluster with highest probability |
No Equivalent |
CLUSTER_ID |
| Degree of confidence of membership of a row |
No Equivalent |
CLUSTER_PROBABILITY |
| Varray of objects of possible clusters |
No Equivalent |
CLUSTER_SET |
| Feature ID with highest coefficient value |
No Equivalent |
FEATURE_ID |
| Varray of objects of all possible features |
No Equivalent |
FEATURE_SET |
| Value of a given feature |
No Equivalent |
FEATURE_VALUE |
| Best prediction for the specified model |
No Equivalent |
PREDICTION |
| Cost measure of a given prediction |
No Equivalent |
PREDICTION_COST |
| XML with model specific scoring |
No Equivalent |
PREDICTION_DETAILS |
| Probability for a given prediction |
No Equivalent |
PREDICTION_PROBABILITY |
| Varray of objects with all possible classes |
No Equivalent |
PREDICTION_SET |
| Date-Time |
| Date addition |
DATEADD |
+ |
| Date subtraction |
DATEDIFF |
- |
| Add a month |
No Equivalent |
ADD_MONTHS |
| First non-null value |
COALESCE |
COALESCE |
| Current date and time (low precision) |
GETDATE & CURRENT_DATE |
CURRENT_DATE |
| Current date and time (high precision) |
No Equivalent |
CURRENT_TIMESTAMP |
| Current date and time (low second) |
GETDATE |
SYSDATE |
| Current date and time (high precision) |
No Equivalent |
SYSTIMESTAMP |
| Database's time-zone |
No Equivalent |
DBTIMEZONE |
| Extract part from date-time or interval |
No Equivalent |
EXTRACT |
| Alter time zone information |
No Equivalent |
FROM_TZ |
| Largest of a set of dates |
No Equivalent |
GREATEST |
| Last day of month |
No Equivalent |
LAST_DAY |
| Smallest of a set of dates |
No Equivalent |
LEAST |
| Months between dates |
No Equivalent |
MONTHS_BETWEEN |
| Time zone conversion |
No Equivalent |
NEW_TIME |
| First weekday after date |
No Equivalent |
NEXT_DAY |
| Rounds date to unit specified |
No Equivalent |
ROUND |
| Current session's time zone |
No Equivalent |
SESSIONTIMEZONE |
| Coordinated universal time |
GET_UTC_DATE |
SYS_EXTRACT_UTC |
| Cast date part to name |
DATENAME |
TO_CHAR |
| Cast date part to number |
DATEPART |
TO_CHAR |
| Integer representing the day of the week |
DAY |
TO_CHAR |
| Integer representing the month of the year |
MONTH |
TO_CHAR |
| Integer representing the year |
YEAR |
TO_CHAR |
| Cast string to date |
CAST |
TO_DATE |
| Determine if a value/expression is a valid date |
ISDATE |
TO_DATE |
| Date from date-time |
No Equivalent |
TRUNC |
| Time-zone offset |
No Equivalent |
TZ_OFFSET |
| Environment |
| Database / Schema Identifier |
DB_ID |
SYS_CONTEXT |
| Database Name |
DB_NAME |
SYS_CONTEXT |
| Host Identifier |
HOST_ID |
SYS_CONTEXT |
| Workstation Name |
HOST_NAME |
SYS_CONTEXT |
| Local language identifier |
@@LANGID |
SYS_CONTEXT |
| Name of language in use |
@@LANGUAGE |
SYS_CONTEXT |
| Value with the named context namespace |
No Equivalent |
USERENV |
| User Session ID |
@@SPID |
UID |
| User Name |
CURRENT_USER |
USER |
| Schema ID |
SCHEMA_ID |
SYS_CONTEXT |
| Schema Name |
SCHEMA_NAME |
SYS_CONTEXT |
| Username in the current context |
SESSION_USER |
SYS_CONTEXT |
| Value with the named context namespace |
No Equivalent |
USERENV |
| Miscellaneous |
| Null Binary Large Object |
No Equivalent |
EMPTY_BLOB |
| Null Character String Large Object |
No Equivalent |
EMPTY_CLOB |
| Length of an NCHAR column |
No Equivalent |
NLS_CHARSET_DECL_LEN |
| ID of NLS character set |
No Equivalent |
NLS_CHARSET_ID |
| Name of NLS character set from ID |
No Equivalent |
NLS_CHARSET_NAME |
| Numeric identifier of current exception code |
@@ERROR & ERROR_NUMBER |
SQLCODE |
| Error message of current exception code |
No Equivalent |
SQLERRM |
| Hierarchical path of column from root to node |
No Equivalent |
SYS_CONNECT_BY_PATH |
| 16 byte GUID |
NEWID |
SYS_GUID |
| Function that builds descending index values |
No Equivalent |
SYS_OP_DESCEND |
| Index leaf block ID scan |
No Equivalent |
SYS_OP_LBID |
| Model |
| Use left side value on right side calculation |
No Equivalent |
CV |
| Iterate through data |
No Equivalent |
ITERATE |
| Iterate a set number of times through data |
No Equivalent |
ITERATE_UNTIL |
| Current iteration number |
No Equivalent |
ITERATION_NUMBER |
| Returns expr1 prior to execution |
No Equivalent |
PRESENTNNV |
| Returns expr1 prior to execution |
No Equivalent |
PRESENTV |
| Reference prior model values |
No Equivalent |
PREVIOUS |
| NULL Handling |
| Evaluate one or both operands may be NULL |
No Equivalent |
LNNVL |
| Returns NULL is expr1 and expr2 both NULL |
NULLIF |
NULLIF |
| Convert to string if NULL |
ISNULL |
NVL |
| Substitute if NULL or if NOT NULL |
No Equivalent |
NVL2 |
| Map NULL for joins |
No Equivalent |
SYS_OP_MAP_NONNULL |
| Numeric |
| Absolute Value |
ABS |
ABS |
| Arc Cosine |
ACOS |
ACOS |
| Arc Sine |
ASIN |
ASIN |
| Arc Tangent of n |
ATAN |
ATAN |
| Arc Tangent1 divided by Arc Tangent2 |
ATN2 |
ATAN2 |
| Average |
AVG |
AVG |
| Compute AND operation on bits |
No Equivalent |
BITAND |
| Smallest integer >= value |
CEILING |
CEIL |
| First non-null value |
COALESCE |
COALESCE |
| Coefficient of correlation |
No Equivalent |
CORR |
| Pearson's coefficient of correlation |
No Equivalent |
CORR_K |
| Spearman's Rho correlation coefficient |
No Equivalent |
CORR_S |
| Cosine |
COS |
COS |
| Hyperbolic Cosine |
COSH |
COSH |
| Cotangent |
COT |
No Equivalent |
| Number of Values |
COUNT & COUNT_BIG |
COUNT |
| Population covariance |
No Equivalent |
COVAR_POP |
| Sample covariance |
No Equivalent |
COVAR_SAMP |
| Cumulative Distribution |
No Equivalent |
CUME_DIST |
| Degrees |
DEGREES |
No Equivalent |
| Rank of row in an ordered group |
No Equivalent |
DENSE_RANK |
| Exponential value |
EXP |
EXP |
| Row ranked first using DENSE_RANK |
No Equivalent |
FIRST |
| Round down to nearest integer |
FLOOR |
FLOOR |
| Largest of multiple values |
No Equivalent |
GREATEST |
| Row ranked last using DENSE_RANK |
No Equivalent |
LAST |
| Smallest of multiple values |
No Equivalent |
LEAST |
| Natural Logarithm |
LOG |
LN |
| Logarithm, Base 10 |
LOG10 |
LOG |
| Maximum returned value |
MAX |
MAX |
| Middle value of a set |
No Equivalent |
MEDIAN |
| Minimum returned value |
MIN |
MIN |
| Remainder from modulus using floor |
MODULO (%) operator |
MOD |
| Returns alternate number if value not a number |
No Equivalent |
NANVL |
| Percent ranking |
No Equivalent |
PERCENT_RANK |
| Inverse distribution continuous dist. model |
No Equivalent |
PERCENTILE_CONT |
| Inverse distribution discrete distribution model |
No Equivalent |
PERCENTILE_DISC |
| Raise value to exponent power |
No Equivalent |
POWER |
| Radians from a numeric expression |
RADIANS |
No Equivalent |
| Random Number |
RAND |
dbms_cryto & dbms_random packages |
| Rank in a group |
No Equivalent |
RANK |
| Linear regression - avg of the independent var. |
No Equivalent |
REGR_AVGX |
| Linear regression - avg of the independent var. |
No Equivalent |
REGR_AVGY |
| Linear regression - non-null number pairs |
No Equivalent |
REGR_COUNT |
| Linear regression - y intercept |
No Equivalent |
REGR_INTERCEPT |
| Linear regression - coefficient of determination |
No Equivalent |
REGR_R2 |
| Linear regression - slope of the line |
No Equivalent |
REGR_SLOPE |
| Linear regression - auxiliary function |
No Equivalent |
REGR_SXX |
| Linear regression - auxiliary function |
No Equivalent |
REGR_SXY |
| Linear regression - auxiliary function |
No Equivalent |
REGR_SYY |
| Remainder from modulus using round |
No Equivalent |
REMAINDER |
| Round to integer place |
ROUND |
ROUND |
| Sign of number |
SIGN |
SIGN |
| Sine |
SIN |
SIN |
| Hyperbolic sine |
No Equivalent |
SINH |
| Square |
SQUARE |
No Equivalent |
| Square root |
SQRT |
SQRT |
| Exact probability test for dichotomous variables |
No Equivalent |
STATS_BINOMIAL_TEST |
| Crosstabulation analysis of nominal variables |
No Equivalent |
STATS_CROSSTAB |
| Whether two values are significantly different |
No Equivalent |
STATS_F_TEST |
| Kolmogorov-Smirnov function |
No Equivalent |
STATS_KS_TEST |
| Value with the greatest frequency |
No Equivalent |
STATS_MODE |
| Mann Whitney test |
No Equivalent |
STATS_MW_TEST |
| One-way analysis of variance function |
No Equivalent |
STATS_ONE_WAY_ANOVA |
| measures significance of a difference of means |
No Equivalent |
STATS_T_TEST |
| Wilcoxon Signed Ranks test of paired samples |
No Equivalent |
STATS_WSR_TEST |
| Standard deviation |
STDEV |
STDDEV |
| Square root of the population variance |
STDEVP |
STDDEV_POP |
| Cumulative sample standard deviation |
No Equivalent |
STDDEV_SAMP |
| Summation |
SUM |
SUM |
| Tangent |
TAN |
TAN |
| Hyperbolic tangent |
No Equivalent |
TANH |
| Truncates to specified decimal places |
No Equivalent |
TRUNC |
| Population Variance |
No Equivalent |
VAR_POP |
| Sample Variance |
No Equivalent |
VAR_SAMP |
| Variance of an expression |
VAR |
VARIANCE |
| Construct equi-width histograms |
No Equivalent |
WIDTH_BUCKET |
| Object |
| Object reference of an argument |
No Equivalent |
DEREF |
| Creates a REF to an object row |
No Equivalent |
MAKEREF |
| Returns a REF of an object instance |
No Equivalent |
REF |
| Typeid of the most specific type of the operand |
No Equivalent |
SYS_TYPEID |
| Returns object instance from an object table |
No Equivalent |
VALUE |
| String |
| Get the ASCII value of a character |
ASCII |
ASCII |
| Convert ASCII to character |
CHAR |
CHR |
| First non-null value |
COALESCE |
COALESCE |
| Concatenate strings |
(expression + expression) |
CONCAT or || |
| Converts From One Character Set To Another |
No Equivalent |
CONVERT |
| Capitalize first letter of each word in string |
No Equivalent |
INITCAP |
| Starting point of pattern in a string |
CHARINDEX & PATINDEX |
INSTR |
| Starting point in bytes of pattern in a string |
No Equivalent |
INSTRB |
| Starting point in Unicode of pattern in a string |
No Equivalent |
INSTRC |
| Starting point in UCS2 of pattern in a string |
No Equivalent |
INSTR2 |
| Starting point in UCS4 of pattern in a string |
No Equivalent |
INSTR4 |
| Length of character string in characters |
DATALENGTH or LEN |
LENGTH |
| Length of character string in bytes |
No Equivalent |
LENGTHB |
| Convert characters to lower case |
LOWER |
LOWER |
| Pad left side of character string |
SPACE |
LPAD |
| Left trim a string |
LTRIM |
LTRIM |
| NLS initial letter upper case |
No Equivalent |
NLS_INITCAP |
| NLS lower case |
No Equivalent |
NLS_LOWER |
| String of bytes used to sort a string |
No Equivalent |
NLSSORT |
| NLS upper case |
No Equivalent |
NLS_UPPER |
| Define quote delimiters |
No Equivalent |
QUOTE_DELIMITERS |
| Regular expression instring |
No Equivalent |
REGEXP_INSTR |
| Regular expression replace |
No Equivalent |
REGEXP_REPLACE |
| Regular expression substring |
No Equivalent8 |
REGEXP_SUBSTR |
| Replace part of a string with a string |
STUFF |
REPLACE |
| Reverses a character expression |
REVERSE |
REVERSE |
| Pad right side of character string |
SPACE |
RPAD |
| Right trim a string |
RTRIM |
RTRIM |
| Phonetic representation of character string |
SOUNDEX |
SOUNDEX |
| Difference between the SOUNDEX values |
DIFFERENCE |
UTL_MATCH built-in Package |
| Substring in characters |
LEFT, RIGHT & SUBSTRING |
SUBSTR |
| Substring in bytes |
No Equivalent |
SUBSTRB |
| Substring in Unicode characters |
No Equivalent |
SUBSTRC |
| Substring in UCS2 |
No Equivalent |
SUBSTR2 |
| Substring in UCS4 |
No Equivalent4 |
SUBSTR4 |
| Character data converted from numeric data |
STR |
TO_CHAR |
| Translate character string |
No Equivalent |
TRANSLATE |
| Translate character string using character set |
No Equivalent |
TRANSLATE USING |
| Change declared type of an expression |
No Equivalent |
TREAT |
| Left and right trim a string |
No Equivalent4 |
TRIM |
| Convert characters to upper case |
UPPER |
UPPER |
| XML |
| Append value to target XML as a child node |
No Equivalent |
APPENDCHILDXML |
| Deletes node(s) matched by XPath expression |
No Equivalent |
DELETEXML |
| Levels in the path specified by UNDER_PATH |
No Equivalent |
DEPTH |
| Does specified node exist |
No Equivalent |
EXISTSNODE |
| Returns XMLType instance containing fragment |
No Equivalent |
EXTRACT |
| Returns a scalar value of the resultant node |
No Equivalent |
EXTRACTVALUE |
| Inserts value to target XML as a child node |
No Equivalent |
INSERTCHILDXML |
| Inserts value to target XML before named node |
No Equivalent |
INSERTXMLBEFORE |
| Relative path that leads to resource |
No Equivalent |
PATH |
| Generates a URL of datatype DBURIType |
No Equivalent |
SYS_DBURIGEN |
| Aggregates XML documents or fragments |
No Equivalent |
SYS_XMLAGG |
| Returns XMLType containing an XML doc |
No Equivalent |
SYS_XMLGEN |
| Returns XMLType instance with updated value |
No Equivalent |
UPDATEXML |
| Returns an aggregated XML document |
No Equivalent |
XMLAGG |
| Generates a CDATA section |
No Equivalent |
XMLCDATA |
| Creates XML fragment & expands resulting XML |
No Equivalent |
XMLCOLLATVAL |
| Generates an XML comment |
No Equivalent |
XMLCOMMENT |
| Concatenates XML elements |
No Equivalent |
XMLCONCAT |
| Returns concatenation of XML fragments |
No Equivalent |
XMLFOREST |
| Parses and generates an XML instance |
No Equivalent |
XMLPARSE |
| Generates an XML processing instruction |
No Equivalent |
XMLPI |
| Returns query results as XML |
QUERY (FLWOR) |
XMLQUERY |
| Create new XML value from version & properties |
No Equivalent |
XMLROOT |
| Returns Varray of top level nodes |
No Equivalent |
XMLSEQUENCE |
| Creates a string/LOB containing the contents |
No Equivalent |
XMLSERIALIZE |
| Returns query of XML results as relational data |
No Equivalent |
XMLTABLE |
| Applies XSLT to XML instance |
No Equivalent |
XMLTRANSFORM |