SELECT CASE WHEN trunc(sysdate-LendDate-15)>0 
            THEN '../image/lendstate1.gif' 
            WHEN trunc(sysdate-LendDate-30)>0 
            THEN '../image/lendstate2.gif'
            ELSE '../image/lendstate1.gif' 
END  AS LendStatus FROM EquipLendNote e;