Consider I have a table structure like this,
id Email
-----------
1 abc@gmail.com
2 abc1@gmail.com
3 abc@gmail.com
4 abc@gmail.com
5 abc@gmail.com
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?