I have the following table:
name email number type
1 abc@example.com 10 A
1 abc@example.com 10 B
2 def@def.com 20 B
3 ggg@ggg.com 30 B
1 abc@example.com 10 A
4 hhh@hhh.com 60 A
I want the following:
Result
name email number type
1 abc@example.com 10 A
1 abc@example.com 10 B
1 abc@example.com 10 A
Basically, I want to find the first lines where the three columns (name, email, number) are identical and see them, regardless of type.
How can I achieve this in SQL? I don't want a result with every combination once, I want to see every line that is in the table multiple times.
I thought of doing a group by but a group by gives me only the unique combinations and every line once. I tried it with a join on the table itself but somehow it got too bloated.
Any ideas?
EDIT: I want to display the type column as well, so group by isn't working and therefore, it's not a duplicate.