I have the following:
SELECT A.LOB, A.INVOICE, A.LINE, B.BI_ID, B.BI_TXT
FROM INV_LINE A, LINE_SB B
WHERE A.LOB = B.LOB (+)
AND A.INVOICE = B.INVOICE (+)
AND A.LINE = B.LINE (+)
I want to be able to specify a specific BI_ID (for those that have one), but lose the lines that don't have anything on the LINE_SB table.
Is this possible?
SELECT A.LOB, A.INVOICE, A.LINE, B.BI_ID, B.BI_TXT
FROM INV_LINE A, LINE_SB B
WHERE A.LOB = B.LOB (+)
AND A.INVOICE = B.INVOICE (+)
AND A.LINE = B.LINE (+)
I want to be able to specify a specific BI_ID (for those that have one), but lose the lines that don't have anything on the LINE_SB table.
Is this possible?