Answer the question
In order to leave comments, you need to log in
How to compare tables?
There are two tables with the same columns and they need to be compared with each other, how can this be done?
Answer the question
In order to leave comments, you need to log in
As far as I understand, 4 fields can match in these tables, but are there other fields?
Then you can connect them, but exactly by these fields:
SELECT *
FROM mytable1 t1, mytable2 t2
WHERE t1.field1 = t2.field1
AND t1.field2 = t2.field2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question