我是老派,一直使用“+”号来表示外部,但是这个 sql 在 sql server 中不起作用。有人可以帮我将以下 sql 转换为新的“左外连接”格式。
select frdonmst.FRID,
fradrmst.adrseq,
fax.phone as fax,
phone.phone as phone
from frdonmst,
fradrmst,
frphnmst fax,
frphnmst phone
where frdonmst.frid = fradrmst.frid
and frdonmst.adrseq = fradrmst.adrseq
and ( frdonmst.frid = fax.frid(+)
and frdonmst.adrseq = fax.adrseq(+)
and fax.phtyp(+) = 'FAX1' )
and ( frdonmst.frid = phone.frid(+)
and frdonmst.adrseq = phone.adrseq(+)
and phone.phtyp(+) = 'D1' )