Loading problem...
You are given a table named Person that stores account records:
Your task is to produce a result set containing only the email addresses that occur more than once in the table.
Requirements:
This problem should be solved in both:
Person:
| id | email |
|----|---------------------|
| 1 | alex@site.com |
| 2 | beta@site.com |
| 3 | alex@site.com |[
{"email":"alex@site.com"}
]alex@site.com appears twice, so it is included once in the output.
Person:
| id | email |
|----|-----------------------|
| 1 | sam@org.io |
| 2 | eva@org.io |
| 3 | sam@org.io |
| 4 | eva@org.io |
| 5 | lee@org.io |[
{"email":"eva@org.io"},
{"email":"sam@org.io"}
]Both eva@org.io and sam@org.io have frequency 2. lee@org.io appears once and is excluded.
Person:
| id | email |
|----|-----------------------|
| 10 | one@mono.net |
| 11 | two@mono.net |
| 12 | three@mono.net |[]No email is repeated, so the result is empty.
Constraints