I would like to have a report run on the entire previous month if no parameter values are passed through to the report. How do i do this?
Another option would be to have it load into the previous month by default and then when refreshed, new parameters for dates can be selected.
Is there a way to do either of these?
This is my command window. My date paramter selects the SQL code.
select cc.NM, dst.DSCRPTN, count(*)
from DST_SUBMITTION dsts , PATIENT p, DRUG_SCREEN_TEST dst, CARE_CENTER cc
where dsts.PTNT_ID = p.PTNT_ID
and p.CC_ID = cc.CC_ID
and dsts.DST_ID = dst.DST_ID
and date(APNTMNT_DT) >= date({?startDt})
and date(APNTMNT_DT) <= date({?endDt})
and dsts.STS_CD in ('A', 'I')
group by cc.NM, dsts.DST_ID;