Skip to main content
Version: 11.0

SQL functions D-H

tip

Check out how to read this article by clicking the “Show content” link. I have a SQL function in mind. Can I use it in my USoft application?

Find the function in the alphabetic list. Look in the column for your database platform. If there is a dash in that cell, or if the function is not in the list at all, then the function is not supported.

Otherwise, have a look also in the USoft column (the second column from the left): There may be special details or restrictions. Consult your RDBMS documentation. In some places, function names are hyperlinked to additional information supplied by USoft. To get more detail on how USoft converts a function, and whether or not it is sent to the RDBMS for evaluation, run a profile in USoft Benchmark. Special cases The table refers to ROWNUM, SYSDATE and USER even though these are technically pseudo-columns rather than functions. Pseudo-columns are like function calls without arguments. They are different from functions in that the call syntax does not use empty parentheses. The table refers to TOP and RECORDS even though these are technically in-line operators and not functions. Rather than taking their input from arguments passed between parentheses, TOP and RECORDS operate on a query result, in a way similar to DISTINCT, GROUP BY, or ORDER BY.

NameUSoftOracleSQLServerODBCJDBCY, Derby
DATABASE---DATABASE-
DATALENGTH--DATALENGTH--
DATEDIFFDATEDIFF_IN_DAYSDATEDIFF_IN_DAYSDATEDIFFDATEDIFF_IN_DAYSDATEDIFF_IN_DAYS
DATEDIFF_IN_DAYSDATEDIFF_IN_DAYSDATEDIFF_IN_DAYSDATEDIFFDATEDIFF_IN_DAYSDATEDIFF_IN_DAYS
DATEADD--DATEADD-DATEADD
DATENAME--DATENAME--
DATEPART--DATEPART--
DATE_TO_CHARDATE_TO_CHARTO_CHAR(datetime)CONVERT(datetime)DATE_TO_CHARTO_CHARDATE
DB_ID--DB_ID--
DB_NAME--DB_NAME--
NameUSoftOracleSQLServerODBCJDBCY, Derby
DAYNAME---DAYNAME-
DAYOFMONTH---DAYOFMONTH-
DAYOFWEEK---DAYOFWEEK-
DAYOFYEAR---DAYOFYEAR-
DECODEDECODEDECODECASECASECASE
DEGREES-DEGREES-DEGREESDEGREES
DIFFERENCE--DIFFERENCEDIFFERENCE-
DUMPDUMP---
ELAPSEDQUERY TRANSACTIONTIMEELAPSEDQUERY TRANSACTIONTIMEELAPSEDQUERY TRANSACTIONTIMEELAPSEDQUERY TRANSACTIONTIMEELAPSEDQUERY TRANSACTIONTIMEELAPSEDQUERY TRANSACTIONTIME
ELAPSED TRANSACTIONTIMEELAPSED TRANSACTIONTIMEELAPSED TRANSACTIONTIMEELAPSED TRANSACTIONTIMEELAPSED TRANSACTIONTIMEELAPSED TRANSACTIONTIMEE
NameUSoftOracleSQLServerODBCJDBCY, Derby
EXPEXPEXPEXPEXPEXP
FLOORFLOORFLOORFLOORFLOORFLOOR
GETDATECURRENT_DATESYSDATEGETDATENOWSYSDATE
GREATEST-GREATEST---
GUIDGUIDGUIDGUIDGUIDGUID
HEXTORAW-HEXTORAW---
HEXTOROWID-HEXTOROWID---
HOST_ID--HOST_ID--
HOST_NAME--HOST_NAME--
HOUR---HOUR-