Hello everyone, I apologize if this question has been asked before, i searched the forums and didn't see anything that seemed to get at what I'm looking to do.
I have two tables that i'm trying to compare and I want to get a full list of the difference, not just the fields that don't match.
I have a table of Job Positions and the various accounts that each one is paid for, and I have a table of the new upcoming budget which has the Job Positions and the accounts that are used to pay each one. Some of these jobs are split (50/50, or 70/30 or 50/30/20, etc.). I would like to find all the jobs in the new budget table and list out the account number and the percentages.
I'm almost there, i did an unmatch query, but it only shows me the differences, I'd like it to show me the job positions that are different but still list out the account numbers and percentages, so that we can do through and true up the first database with the new info. Hopefully, my example below will help explain it.
Table 1(Budget Positions - These will be the changes entered into the HR database)
Job Code Account Pct 1464 0014510 10% 1464 0014523 5% 1464 0014524 10% 1464 0014526 5% 1464 0014527 5% 1464 0014528 5% 1464 0014543 20% 1464 0014570 20% 1464 0014571 10% 1464 0014572 5% 1464 0014573 5%
Table 2 (Job Positions - Currently in HR database)
Job Code Account Pct 1464 0014510 10% 1464 0014523 5% 1464 0014526 5% 1464 0014528 5% 1464 0014570 55% 1464 0014571 10% 1464 0014572 5% 1464 0014573 5%
The query I've managed to make so far will show me the items that exist in Table 1 but not in Table two but it only shows me the 4 items that dont match. What I would really like is for it to show me a table of all the Job Codes where there is a mismatch, but also show me all the rows associated with that Job code, so when we're updating the database we know all the account numbers and percentages to enter in.
so instead of showing me:
1464 0014543 20%
1464 0014527 5%
1464 0014524 10%
1464 0014570 20%
It would just show all the lines that have Job Code 1464 from Table 1. If the Job code, account and percentage match between the two tables dont show anything, but if there's a mismatch on any one of those 3 columns for that specific job code then show me all the rows from table 1.
I hope that explains what i'm trying to do, until I started working here previous co-workers would manually go through the list in spreadsheets line by line and find the differences. i'm too lazy for this manual method, and I think what i've already come up with is good enough, but figured in the off chance it's needed I would ask to see if the method i explained is possible.
Thank you in advance for your help with that, i greatly appreciate it.