MONTHDELTA(sql("RPT_SXRPTUSER","SELECT MIN(MONTH) FROM (select distinct TO_char(EVENTSDATETIME,'yyyy-mm') month from MFG_ACCESSEVENTSDATA t order by month)",1),0)
MONTHDELTA(sql("RPT_SXRPTUSER","SELECT MIN(MONTH) FROM (select distinct TO_char(EVENTSDATETIME,'yyyy-mm') month from MFG_ACCESSEVENTSDATA t order by month)",1)+"-01",0)