Finding Differnces in Two Tables

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

I have two tables with linked 'Incident#'. I am trying to identify errors in
one of the tables. How do I create a query that identifies matching
'Incident#' with a different 'IncidentDate' between the two tables?

Thanks!
 
hi Adam,
I have two tables with linked 'Incident#'. I am trying to identify errors in
one of the tables. How do I create a query that identifies matching
'Incident#' with a different 'IncidentDate' between the two tables?
Your queries SQL should look like this:

SELECT L.*, R.*
FROM yourTable1 L
INNER JOIN yourTable2 R
ON L.[Incident#] = R.[Incident#]
WHERE L.IncidentDate <> R.IncidentDate



mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

6 Month Rolling Average in Query 9
Time Frame Query 2
'count' query question 2
DSum Problem 7
DSum Problems 2
Custom Counter 5
Append query key violation 8
Query based on multiple Tables 1

Back
Top