Appendix G. SQL Functions
Every RDBMS maintains an ever-expanding list of the SQL functions covered in Chapter 10 of this book. This appendix provides a comprehensive list of the functions available for each RDBMS in its current version: Oracle 11 g, IBM DB2 9.5, and Microsoft SQL Server 2008.
All the functions are grouped in Tables G-1 through G-30 similarly to the way they are organized in each corresponding vendor's documentation. Oracle 11 g allows overloading of the functions, meaning that some functions can be used in more than one way depending on the data type and number of arguments; because of that such functions are listed in several categories. Both IBM DB2 9.5 and Microsoft SQL Server 2008 are utilizing overloading to a much lesser extent.
Certain functions require appropriate privileges to be run, and some functions return results that cannot be meaningfully displayed (binary, object, table value, and so on). We've omitted the arguments of the functions from the tables, because the purpose of the appendix is to show what is available, without going into too much detail. Refer to each vendor's documentation for more detailed syntax and explanations.
Table G.1. Oracle 11g SQL Number Functions
Function Name | Brief Description |
---|---|
| Returns the absolute value of n. |
| Returns the arc cosine of n. |
| Returns the arc sine of n. |
| Returns the arc tangent of n. |
| Returns the arc tangent of n and m. |
| Returns an integer representing an AND operation on the bits of the two expressions ... |
Get SQL Bible, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.