create function getOverDueRent(sPlandate varchar(40), sPlanId varchar(40)) returns varchar(80)
RETURN (
		SELECT SUM(lri.rent) AS sumrent FROM LC_RENT_INCOME lri WHERE lri.plan_id=sPlanId AND lri.hire_date>splandate and lri.rent>0 GROUP BY lri.plan_id
	);

