Following query should work
I m assuming that both table contains year column
Help with Code Tags MySQL Syntax ( Toggle Plain Text ) SELECT sum ( elec.votes ) /sum ( stat.rating ) as percentage FROM elec INNER JOIN on elec. YEAR =stat. YEAR WHERE stat. YEAR = 2009 select sum(elec.votes)/sum(stat.rating) as percentage
from elec ...



