=RUSH_GET_WhatYouWantDay(0,{expstate} ) and t.end_date<=RUSH_GET_WhatYouWantDay(1,{expstate} ) and $equal(t.org_id,company) and t.customerid not in ( select l.customer_id from RUSH_RECORD l where l.customer_id = t.customerid and t.end_date <= add_months(trunc(sysdate, 'yyyy'), 12) - 1 ) and $equal(t.revenueid,revenue) and $equal(t.end_datechr,service_end_date) order by t.end_date ]]>