Skip to Main Content

Analytics Software

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Case Statement using NOT LIKE not working in Rpd

900390Feb 16 2012 — edited Feb 16 2012
Hi

I am trying to use a case statement which has a NOT LIKE clause in it but the rpd defaults to a different statement when i try and save the case statement.

Here is my situation: When I put this case statement into the rpd expression builder for a column

Case WHEN "Dim - GL Segment3 - Minor"."Segment Code" NOT LIKE '%95' then 'Without Accruals' WHEN "Dim - GL Segment3 - Minor"."Segment Code"IS NOT NULL then 'With Accruals ' else "Dim - GL Segment3 - Minor"."Segment Code" end

when I try and save it ..it changes it to

CASE WHEN NOT Core."Dim - GL Segment3 - Minor"."Segment Code" LIKE '%95' THEN 'Without Accruals' WHEN NOT Core."Dim - GL Segment3 - Minor"."Segment Code" IS NULL THEN 'With Accruals ' ELSE Core."Dim - GL Segment3 - Minor"."Segment Code" END

which clearly is not the intent of the statement .. what is the workaround or rather what is the correct expression I can use to get the desired results
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details