Skip to content
Advertisement

List only repeating names

I want to isolate all the repeat names, despite the other columns, like this:

This is what I came up with but I cannot get it to work:

Advertisement

Answer

You must check that the 2 rows have different ids:

Always qualify the column names with the table’s name/alias and don’t use numbers as aliases unless they are enclosed in backticks or square brackets.
See the demo.
Results:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement