Invoice Customer ------- -------- Invo_ID Cust_ID Cust_ID Cust_Addrthen the statement will look like:
Select Distinct a.Cust_ID, b.Cust_Addr ; From Invoice a, Customer b ; Where a.CustID=b.CustIDIf you have another customer ID whose address needs to be obtained then you can join another Select statement with the UNION keyword, in the same format of the above. Now guessing further if you have two invoice numbers and want to get the address of the customer, you don't need to SELECT DISTINCT, you just do the straight
Select a.Cust_ID, b.Cust_Addr ; From Invoice a, Customer b ; Where a.Cust_ID=b.CustIDBut then again I may be just guessing too much.