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 A.LINE_NUM = B.LINE_NUM
Is there a way to return only one row for each unit, invoice, line_num with the two spcl_bi_id and spcl_bi_txt on the the same line?
Thanks,
Jen
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 A.LINE_NUM = B.LINE_NUM
Is there a way to return only one row for each unit, invoice, line_num with the two spcl_bi_id and spcl_bi_txt on the the same line?
Thanks,
Jen