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...
When I run the following, I get two rows of data for the same unit, invoice, line_num that has two spcl_bi_id and spcl_bi_txt.
SELECT A.UNIT, A.INVOICE, A.LINE_NUM, B.SPCL_BI_ID, B.SPCL_BI_TXT
FROM BI_LINE A, BI_LINE_SB B
WHERE A.UNIT = B.UNIT
AND A.INVOICE = B.INVOICE
AND...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.