i have two Identical tables in my SQL database these tables consist of Item Code and QTY each.
I need to see which items in both tables that have different quantities AND the items that
don’t exist in the other table
I tried using FULL OUTER JOIN ON ITEMCODE=ITEMCODE AND QTY<>QTY
IT IS NOT WORKING
the result i am getting is something like that:
Try something like this:
Since you have a test for inequality in the WHERE clause you’re implicitly only including items that are in both tables. This way you include items that are in one table, but not the other, or have the difference in quantity.