I\'ve written a query returning rows associating Customers and Salespeoeple.
Note that the query joins several database tables. And note that not all c
You can create a view to make your UPDATE statement simple. The view should contain your query (in your case the query that associates customers and salespeople). Then update your table (invoices in your case) like this:
update TableToUpdate ttu, MyView mv
set ttu.column = mv.column
where ttu.key = mv.key