Skip to content
Advertisement

subtraction of 2 select statements

I have a simple table:

Neighbourhood

Some countries have the same neighborhood name. All I want is the total minus the distinct. but I have a problem with the operator; Here is what I am doing.

Advertisement

Answer

So you want:

I might suggest a further breakdown:

This shows the frequency of duplication along with example value of neighbourhood.

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