Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Tips and Tricks
Message Icon Topic: Convert Decode to IF then else in Oracle for Cryst Post Reply Post New Topic
Author Message
tarunjain
Newbie
Newbie


Joined: 14 Jul 2010
Location: United States
Online Status: Offline
Posts: 10
Quote tarunjain Replybullet Topic: Convert Decode to IF then else in Oracle for Cryst
    Posted: 27 Sep 2010 at 12:48pm

I know this will sound stupid, especially here, but I am having trouble with this. I know decode is like a if-then-else statement, but I am having difficulty converting this into a IF-THEN_ELSE statement to be used in a query field in Crystal Reports.


decode(workorder.pmnum,null,decode(workorder.istask,0,nvl(workorder.schedfinish,workorder.targcompdate),null),decode(workorder.istask,0,workorder.llyreqdcompdate,nvl(workorder.schedfinish,workorder.targcompdate))) as reqdcompdate

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.