Boss: dedupe in place
Remove the duplicates from a copy of the customer table, keeping the oldest row of each group.
task
cust_copy is a copy of customers. Delete the duplicates by lower(email), keeping the lowest customer_id, in one DELETE.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Remove the duplicates from a copy of the customer table, keeping the oldest row of each group.
cust_copy is a copy of customers. Delete the duplicates by lower(email), keeping the lowest customer_id, in one DELETE.