Hi,
I'm a bit new to queries in Access, and normally use SQL in Ingres to get what I need.I found the most simplest of things to do actualy quite difficult in the Query Design View of Access.
Say I have two non keyed tables with exactly the same data structure. There is only one field, a 5 digit Text field which is a reference, called 'reference' They're called Table1 and Table2. The majority of the data is the same in both of the tables, with only slight differences. There may be duplication of a entry in the same table, the fields are not unique so repetition may occur
I want to find all the entries in table1 do not exists at all in table2. This would be easy to acheive in Ingres SQL, but I can't find an easy way in Access.
I'd do this with a subquery in Ingres as below
select reference
from table1
where reference not in (select reference
from table2);
or
select reference
from table2
where reference not in (select reference
from table1);
What if there were many more fields also.
I'm a bit new to queries in Access, and normally use SQL in Ingres to get what I need.I found the most simplest of things to do actualy quite difficult in the Query Design View of Access.
Say I have two non keyed tables with exactly the same data structure. There is only one field, a 5 digit Text field which is a reference, called 'reference' They're called Table1 and Table2. The majority of the data is the same in both of the tables, with only slight differences. There may be duplication of a entry in the same table, the fields are not unique so repetition may occur
I want to find all the entries in table1 do not exists at all in table2. This would be easy to acheive in Ingres SQL, but I can't find an easy way in Access.
I'd do this with a subquery in Ingres as below
select reference
from table1
where reference not in (select reference
from table2);
or
select reference
from table2
where reference not in (select reference
from table1);
What if there were many more fields also.