Sql Enhancements; Generating Hierarchical Results - Oracle Application Server 10.1.3.4 User Manual

Adapters for ims/db release 3 (10.1.3.4)
Table of Contents

Advertisement

Table D–4 (Cont.) Group Functions
Oracle
Oracle Connect
Function
Function
Max
Max
Min
Min
Sum
Sum
Table D–5
Mathematical Functions
Oracle
Oracle Connect
Function
Function
Abs
Abs
Ceil
Ceil
Cos
Cos
Exp
Exp
Floor
Floor
Ln
Ln
Log
Log
Mod
Mod
Nvl
Nvl
Power
Power
Round
Round
Sin
Sin
Sqrt
Sqrt
Tan
Tan
Trunc
Trunc

SQL Enhancements

You can incorporate the following SQL enhancements into the adapter interactions to
handle hierarchical data in IMS/DB.

Generating Hierarchical Results

Accessing Hierarchical Data Using SQL
Flattening Hierarchical Data Using SQL
Generating Hierarchical Results
A hierarchical query nests a SELECT statement as one of the columns of the rowset
retrieved by a nested SELECT statement.
Use braces ({}) to delimit the nesting.
Usage
Comment
Max(exp)
Returns the maximum value of the expression exp
Min(exp)
Returns the minimum value of the expression exp
Sum(exp)
Returns the summation of the expression exp
Usage
Comment
Abs(n)
Returns the absolute value of n
Ceil(n)
Returns n rounded up to the closest integer
Cos(n)
Returns the cosine value of n
Exp(n)
Returns the exponential value of n
Floor(n)
Returns n rounded down to the closest integer
Ln(n)
Returns the natural log value of n
Log(n)
Returns the log value of n
Mod(n, m)
Returns the integer value after dividing n by m
Nvl(exp1, exp2)
Returns exp2 when exp1 is null
Power(n, m)
Returns n to the power of m
Round(n, m)
Returns n with the fractional part rounded to m digits
Sin(n)
Returns the sine value of n
Sqrt(n)
Returns the square root of n
Tan(n)
Returns the tangent value of n
Trunc(n, m)
Returns the absolute value of n
Supported SQL Syntax and SQL Enhancements D-3
SQL Enhancements

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Application Server 10.1.3.4 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Application server 10g

Table of Contents