|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, does anyone know how to retrieve mistmatched records across 2 tables.
To clarify, I have table A with 1175 records and Table B with 894 records. The records from table A match exactly some the records in table B. I want to create another table with the extra 281 records from Table A which does not match that of Table B. I have tried the query with Select where fields_1.a<>fields_2.b AND fields_2.a<>fields_2.b etc but that doesn't seem to work. *desparate* Last edited by knockingknees : June 24th, 2004 at 12:29 PM. Reason: Let me explain more clearly |
|
#2
|
|||
|
|||
|
use key in tables to find out.
select * from tableA into tableC where key not in (select key from tableB) |
|
#3
|
||||
|
||||
|
Code:
select tableA.key
, tableA.col1
, tableA.col2
into tableC
from tableA
left outer
join tableB
on tableA.key
= tableB.key
where tableB.key is null
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > How to retrieve mismatched records with MS Access Query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|