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!

date format in Direct database request

user8840662Mar 29 2013 — edited Mar 29 2013
I have a report with direct database request.
I have a date prompt..I am storing the date in a Presentation Variable named pv_date.

In the direct database request, I have a where clause:

WHERE business_date IN ( @{pv_date}{'1/1/2013'} )

when I run open dashboard for the first time, its throwing me an error near TIMESTAMP.

WHERE business_date IN( TIMESTAMP ''2013-01-01 00:00:00'')



AND ALSO When I run this report from dashboard after choosing a date say 2/20/2013, I see the query as:

WHERE business_date IN (2013-02-20 00:00:00)

and hence throwing error.


Its throwing error in both the cases. How do I change the format in WHERE clause..

Ideally, I want the query to be WHERE business_date IN ('2/20/2013') or Business_date IN ('2013-02-20')
This post has been answered by SriniVEERAVALLI on Mar 29 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details