I have two tables with lots of IP addresses and I want to delete the identical ones from two tables. I tried twice but none worked for me.
The first query I tried is :
Delete FROM table1, table2
WHERE table1.IpAdd != table2.Ipaddress
The second query is:
DELETE table1, table2
FROM table1
INNER JOIN table2
WHERE table1.IpAdd = table2.Ipaddress