Problem · Database
Find Duplicate Email Addresses
Problem statement
The table employees stores one row per employee email record.
Return every email address that appears more than once. Comparison is exact and case-sensitive. Do not count or list unique emails.
Return one column named email. Order rows by email ascending.
What the interview report shared
The interviewer asked SQL to find duplicate email addresses.
| Column | Meaning |
|---|---|
employee_id | Unique employee identifier |
email | Employee email address |
Table schema
MySQLPostgreSQLPandas
Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.
employees
One row per employee email record.
| Column | Type | Nullable | Description |
|---|---|---|---|
| employee_idPK | Integer | No | — |
| Text | No | — |
Expected result
Your query or function must return these columns.
| Column | Type | Nullable | Description |
|---|---|---|---|
| Text | No | — |
Row order: must match exactly. Numeric tolerance: 0.
Constraints
- The
employeestable has between1and10^5rows. employee_idis unique and non-null.emailis non-null and contains at most200characters.