I need to select all the fields of the entries that have differences between two columns of two different tables.
tables: wow_eu_leadder_3v3 and wow_eu_leadder_3v3_old columns to check: rating and ranking
I need to select all the fields of the entries that have differences between two columns of two different tables.
tables: wow_eu_leadder_3v3 and wow_eu_leadder_3v3_old columns to check: rating and ranking
This worked for me:
SELECT DISTINCT a.*
FROM wow_eu_leadder_3v3 a,wow_eu_leadder_3v3_old b
WHERE a.name = b.name
AND a.realm_id = b.realm_id
AND a.rating <> b.rating;