Skip to content
Advertisement

SQL subquery for function count

The first column is the name of the locality,the second column is the number of voters in every locality.. my problem is on the third column because im trying to count voters that are unemployment but is counting all voters.sorry for my english.

this is the out:

Advertisement

Answer

Try this:

When you join two tables please do it like this:

And not like this:

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