I get an Ambiguous column name error with this query (InvoiceID). I can\'t figure out why. They all seem to be joined correctly so why doesn\'t the management studio know to
Most likely both tables have a column with the same name. Alias each table, and call each column with the table alias.