196. Delete Duplicate Emails

Description

Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.

Note:

Your output is the whole Person table after executing your sql. Use delete statement.

Constraints

Approach

Examples

Input:

Id is the primary key column for this table.

Output:

Solutions

Follow up

Last updated