Skip to Content

Filter by Date using the object command

SELECT DECODE(c.description, '', 'Total', c.description) "Support Data", count(b.case_cd) "Count"




a.case_id = b.case_cd AND

b.outcome_support_data_cd = c.outcome_support_data_id and

a.closure_date >= to_date('{?closure_start_date}','MM/DD/YYYY') AND

-------> this line above and the one below if comment errors disappers

a.closure_date <= to_date('{?closure_end_date}','MM/DD/YYYY')

AND a.deleted_ind = 0 AND

a.region_assigned = r.region_id AND

UPPER(r.description) LIKE UPPER('{?description}'||'%')

GROUP BY DECODE(c.description, '', 'Total', c.description)


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 03, 2019 at 07:20 AM

    Hi Michael,

    Have you tried without the quotes around the {?closure_start_date} prompt field?


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 04, 2019 at 04:09 PM

    Also, if you have the parameter data type set to Date, then you don't need to use To_Date.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.