select count(truefalse) as totalTrue from #application.settings.tableprefix#results where questionidfk = and truefalse = 1 select count(truefalse) as totalFalse from #application.settings.tableprefix#results where questionidfk = and truefalse = 0