SELECT B.APPLINAME, r.GRADERULENAME, B.SEX,car.licenseno, P.* FROM CRM_SMS_SENDPOOL P LEFT JOIN BASMEMBERINFO B ON B.MEMBERID = P.MEMBERID LEFT JOIN BasGradeRule r ON r.graderuleid = b.OwnerGrade inner JOIN bascarinfo car ON p.carid = car.seqno WHERE p.Status = 2 AND SYSDATE >= p.sendtime