Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17908

How do I get data in table A that is not in table B, but by only looking at one specific column?

$
0
0

Question Raised Previously:-

How do I get records from Table A that are not in Table B? 

 

Answer:-

  1. Switch to the Data View  
  2. Go to the Modelling Tab and choose New Table.
  3. Fire the query - DummyTable = INTERSECT('Table1(Lead Website)','Table1(Database)')
  4. Again Choose New Table 
  5. Fire the Query - DesiredTable = EXCEPT('Table1(Lead Website)',DummyTable)

 

When I have tested this it works however when I use this with live data it doesn't work because not all fields are exactly the same.

E.g. 

 

Table A Record (Lead Website)

Name = Mrs S Smith

Address = 1 Test Road, Test, TE5 73D

Email = smith@test.com 

 

Table B Record (Database)

Name = Mrs Sandra Smith

Address = 1 Test Road, TE5 73D

Email = smith@test.com 

 

The constant in both would be the email address, therefore is there possibly a way for us to tweak the answer above slightly to encorporate this? 


Thanks,

Amie.


Viewing all articles
Browse latest Browse all 17908

Trending Articles