select distinct bjmc  from class,outbook 
where bjmc in (left(seller,len(seller)-6))) is not null..