thegentleman
IS-IT--Management
Hi,
I have two identical tables A and B both with similar sets of data. What I want to do is create a query that displays all of the data in table A where one field (X) is the same, but where field (Y) is not the same in table B.
E.G
TABLE A
ID BOOKING VALUE
23 6876 23
23 6876 768
23 6876 545
25 7687 9879
25 7687 765
25 7687 3345
TABLE B
ID BOOKING VALUE
23 6876 23
23 6876 768
24 7888 67
25 7687 9879
25 7687 765
The resulting Query should look like:
ID BOOKING VALUE
23 6876 545
25 7687 3345
The query must also ignore all lines in table B that are not in table A.
I hope this makes sense. Any help would be appreciated.
~tg
I have two identical tables A and B both with similar sets of data. What I want to do is create a query that displays all of the data in table A where one field (X) is the same, but where field (Y) is not the same in table B.
E.G
TABLE A
ID BOOKING VALUE
23 6876 23
23 6876 768
23 6876 545
25 7687 9879
25 7687 765
25 7687 3345
TABLE B
ID BOOKING VALUE
23 6876 23
23 6876 768
24 7888 67
25 7687 9879
25 7687 765
The resulting Query should look like:
ID BOOKING VALUE
23 6876 545
25 7687 3345
The query must also ignore all lines in table B that are not in table A.
I hope this makes sense. Any help would be appreciated.
~tg