This
SELECT *
FROM qsn_app.tx_blurb_new bn,
qsn_app.tx_image i
WHERE i.blurb2tx_blurb_new(+) = bn.blurb_key
AND i.active_flag(+) = ‘Y’;
converts to this
SELECT *
FROM QSN_APP.TX_IMAGE I
RIGHT OUTER JOIN QSN_APP.TX_BLURB_NEW BN ON (I.BLURB2TX_BLURB_NEW = BN.BLURB_KEY)
WHERE (I.ACTIVE_FLAG /(+)/
) = ‘Y’;
which is wrong! active_flag needs to go into the “ON” criteria.
In the original SQL, if i.active_flag was compared to another column, rather that a literal, Toad does the translation correctly.
for example:
AND i.active_flag(+) = bn.active_flag