Skip Headers

Oracle9i OLAP Developer's Guide to the OLAP DML
Release 2 (9.2)

Part Number A95298-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Selecting Data, 7 of 13


Limiting Based on the Position of a Value in a Dimension

Using the LIMIT command, you can set dimension status based on the position of values in either:

Limiting Using Value Position in its Dimension

You can use the LIMIT command with the FIRST, LAST, NTH, and POSLIST keywords to set dimension status based on the position of a value within a dimension.

The simplified syntax for using the LIMIT command in this way is shown below.

LIMIT dimension TO {FIRST n|LAST n|NTH n|POSLIST poslist-exp}

The FIRST, LAST, and NTH keywords specify where the value is in the full set of dimension values. The n argument following it specifies the number of values.

The POSLIST keyword indicates that the poslist-exp argument following it is a text expression, each line of which is a numeric value that evaluates to a numeric position of the dimension being limited.

Limiting Using Value Position in an Unrelated Dimension

You can use the LIMIT command with the NOCONVERT keyword to insert a value into a dimension status list based on the numeric position of the values in the status list of the unrelated dimension. This is particularly useful when the two dimensions are in different analytic workspaces (for example, when there is a one-to-one correspondence between the product dimension in two analytic workspaces).

The simplified syntax for using the LIMIT command in this way is shown below:

LIMIT dimension TO NOCONVERT unrelated-dimension

The unrelated-dimension argument specifies the name of a dimension not related to the dimension being limited.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 2001, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback