I have an SQL statement that is quering an Oracle database. I need to parameterize some parts of the SQL.
Example snippet of code.
from clarity.bsch_job, clarity.bsch_run
where clarity.bsch_run.run = clarity.bsch_job.run
and clarity.bsch_job.sf_date = to_date(to_char(sysdate-6, 'DD-MON-YY'))
group by clarity.bsch_job.run
In the above example sysdate-6 needs to be a date parameter. For example parm1.
to_date(to_char(?parm1, 'DD-MON-YY'))
How is this done?
Example snippet of code.
from clarity.bsch_job, clarity.bsch_run
where clarity.bsch_run.run = clarity.bsch_job.run
and clarity.bsch_job.sf_date = to_date(to_char(sysdate-6, 'DD-MON-YY'))
group by clarity.bsch_job.run
In the above example sysdate-6 needs to be a date parameter. For example parm1.
to_date(to_char(?parm1, 'DD-MON-YY'))
How is this done?