select a.* from a,b,c where a.iicode=b.iicode and b.iicode=c.iicode and a.iicode is not null and c.importtype<>'02'