感谢2楼的提醒,感谢3楼的帮忙。
自己写出来了。那些“高手”们,也感谢你们的批评。
select a.oga01,a.oga04, a.occ02,a.occ18,a.occ241,b.oga03,b.occ02,b.occ18,b.occ231 from
(select oga01,oga04,occ02,occ18,occ241
from oga_file,occ_file
where oga04=occ01
) a
,
(select oga01,oga03,occ02,occ18,occ231
from oga_file,occ_file
where oga03=occ01
) b
where a.oga01=b.oga01
|