2个表连接问题 求助!
表a
号码 日期
001 0302
001 0303
001 0304
表b
号码 标志
001 1
001 2
001 3
001 4
我想写一SQL 想要以下结果
号码 日期 标志
001 0302 1
001 0303 2
001 0304 3
select a.号码,a.日期,b.标志
from a, b
where a.号码=b.号码 and a.号码=001
a.号码=b.号码(+) and a.号码=001 也不正确
出来的结果
001 0302 1
001 0303 1
001 0304 1
001 0302 2
001 0303 2
001 0304 2
001 0302 3
001 0303 3
001 0304 3
001 0302 4
001 0303 4
001 0304 4