SELECT Name, ItemID, ID1, ID2,ID3 FROM item
UNION ALL
SELECT Name, ItemID, ID1, ID2,ID3 FROM bankitem
Atau gunakan UNION jika Anda tidak ingin duplikat. Jika Anda tidak ingin duplikat di tabel, gunakan indeks unik di kolom itu.
SELECT * FROM(SELECT Name, ItemID, ID1, ID2, ID3, count(*) no_of_records FROM item
UNION
SELECT Name, ItemID, ID1, ID2, ID3, count(*) no_of_records FROM bankitem
GROUP BY Name, ItemID, ID1, ID2, ID3 HAVING count(*) > 1)as x
WHERE x.Name != 'RedPotion'
Atau
WHERE x.Name NOT IN('blah1','blah2')