I build a query in AOT where there are many data sets joined to get some data.
For Example: i have following table.
Vendor ID - Trans Date - Invoice Amount - Invoice ID - Status - NTN No.
A001 - 1/1/2000 - 82,000 - US-102 - Reg - 123456
A001 - 1/1/2000 - 10,000 - US-101 - NTN# - NTN12341
A001 - 1/1/2000 - 82,000 - US-102 - UnReg - 123456
What i want to ask is that how can i merge STATUS and NTN nO. requirement is i want to show the status whether it is Reg aur UnReg I dont want to show NTN# in status. and in front of status i want to display NTN numbers. Like this
Vendor ID - TransDate - InvoiceAmount - InvoiceID - Status - NTN No.
A001 - 1/1/2000 - 82,000 - US-102 - Reg - NTN12341
A001 - 1/1/2000 - 10,000 - US-101 - - NTN12342
A001 - 1/1/2000 - 82,000 - US-102 - UnReg - NTN12343