select 表2,*
from 表2 as t1,
(select 档案号,次数 from 表1 where 标志='I') as t2
where t1.档案号=t2.档案号
and t1.次数=t2.次数
select A.档案号, A.标志, A.次数, B.名字
from 表1 A,表2 B
Where A.档案号= B.档案号
and A.次数 = B.次数
and A.标志 = 'I'
select
表2.档案号,
表2.名字,
表2.次数
from 表1
inner join 表2
on 表2.档案号=表1.档案号
and 表2.次数=表1.次数
where
表1.标志='I'