SELECT *
FROM
sunrise.RMA
INNER JOIN
sunrise.S_FLD_DEFAULTDATA AS DD ON sunrise.RMA.ROOTCAUSEENGCAT = DD.ACTUALVALUE
AND DD.FIELDID = '106014684'
INNER JOIN
sunrise.S_FLD_DEFAULTDATA ON sunrise.RMA.PRODUCTFAMILY = DD.ACTUALVALUE
AND DD.FIELDID = '106014687'
WHERE
sunrise.RMA.servicereqid = 'RMA010323'
它只会通过第一次加入。
我在这里缺少什么?
答案 0 :(得分:2)
SELECT *
FROM sunrise.RMA
INNER JOIN sunrise.S_FLD_DEFAULTDATA AS DD
ON sunrise.RMA.ROOTCAUSEENGCAT = DD.ACTUALVALUE AND DD.FIELDID = '106014684'
INNER JOIN sunrise.S_FLD_DEFAULTDATA DDD
ON sunrise.RMA.PRODUCTFAMILY = DDD .ACTUALVALUE AND DDD .FIELDID = '106014687'
Where sunrise.RMA.servicereqid = 'RMA010323'