I have 2 tables, contracts and salesmen.
Recently I’ve discovered some errors in the data, some contracts have salesid’s not found in ‘salesmen’, I suspect an accidental deletion or an input error of some kind.
Which join should I use to find all contracts that dont ‘belong’ to a salesman, in other words, the contract.salesid not found in the salesmen.id column.
It should be a right outer join but the results arent coming up right.
would be my guess.