Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MODEL Clause

Oracle_MonkeyJan 7 2016 — edited Jan 8 2016

insert into t(id)  select level from dual connect by level <6;

select * from T

MODEL

DIMENSION BY( ROW_NUMBER() OVER ( ORDER BY ID)*2 RN )

MEASURES (ID)

RULES

(

ID[  RN  BETWEEN 4 AND 8]=ID[cv()] * 2

)

ORDER BY RN;'

I am getting an error ORA-32637: Self cyclic rule in sequential order MODEL since i am using the same dimension column in cell and dimension reference.

I want to double the values of ID which are RN between 4 and 8

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2016
Added on Jan 7 2016
3 comments
489 views