Consider I have a table structure like this,
id Email
-----------
1 [email protected]
2 [email protected]
3 [email protected]
4 [email protected]
5 [email protected]
And another table
id userId name
---------------------
1 1 A
2 2 B
3 3 C
4 4 D
5 5 E
Now if I want to remove duplicates from table 1, i.e. 2, 3, 4, 5
should be deleted from table1
and its corresponding data in table2
.
How would I do this?
Is this possible?