Quantcast
Viewing all articles
Browse latest Browse all 1291

Creating a Dynamic Prompt (Today's Date and Yesterday's Date) in Oracle

Hi All

 

I've used Oracle in the past, however I don't believe I went into so much detail in creating a prompt such as the following:

 

So the business requirement is to create a Today's Date Prompt as well as the yesterday's date prompt (Retrieving yesterday's data)

 

@Select(Class Name\Object Name) = (CASE WHEN @Prompt('Enter Date','D',{'Today'},mono,free,not_persistent,{'Today'}) THEN Cast(Convert(varchar(10), GetDate(), 112) as datetime) ELSE @Prompt('Enter Date','D',{'Today'},mono,free,not_persistent,{'Today'}) END )

 

At the moment I am receiving the following error:

 

 

Image may be NSFW.
Clik here to view.
Screen Shot 02-08-16 at 09.37 AM 001.JPG

 

I have researched this error message and came up with the following:

 

ORA-00920: invalid relational operator tips

 

Within the following URL, it mentions that I must use the = operator and if not used properly I will receive the following error message as stated above.

 

Any input would be greatly appreciated.

 

Kind Regards,


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>