Skip to content
Advertisement

Select the duplicate rows with specific values

How can I only get the data with the same ID, but not the same Name?

The following is the example to explain my thought. Thanks.

Expected Output:

How I have done.

But the result included the following parts that I do not want it.

Advertisement

Answer

One approach would be to use a subquery to identify IDs that have multiple names.

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