i have a database with 5 tables. one field in all the tables is the same. Now, due to some data entry errors, a few rows are non matching. how do i find which ones are non matching and in what tables. table structure is as follows:-
stockmaster(code,description)
stockquantity(code,quantity)
stockbuffer(code,buffer)
stockweights(code,weight)
stockorders(code,orderqty)
i want to find out which codes are non matching in all the tables. any help would be greatly appreciated.
i used the following query to find the matching ones.
SELECT stockmaster.code as a, stockquantity.code as b, stockbuffer.code as c, stockweights.code as d, stockorders.code as e FROM stockmaster JOIN stockquantity ON stockquantity.code = stockmaster.code and so on...
above gives me the matching ones.