i have 2 table
table Person
ID Name Type
001 A Customer
002 B Sales
table Invoice
InvoiceID CustomerID SalesID Quantity
0000001 001 002 10
i want to join like this
InvoiceID CustomerID Customer Name SalesID SalesName Quantity
0000001 001 A 002 B 10
pls tell me how to do it
thx
table Person
ID Name Type
001 A Customer
002 B Sales
table Invoice
InvoiceID CustomerID SalesID Quantity
0000001 001 002 10
i want to join like this
InvoiceID CustomerID Customer Name SalesID SalesName Quantity
0000001 001 A 002 B 10
pls tell me how to do it
thx
Comment