Question: What percentage of participants want to use which framework?
SQL:
SELECT MiscTech.name, COUNT(MiscTech.id) * 100.0 / (SELECT COUNT(DISTINCT Response_id) FROM Response_MiscTechWantToWorkWith) FROM MiscTech JOIN Response_MiscTechWantToWorkWith ON Response_MiscTechWantToWorkWith.MiscTech_id = MiscTech.id GROUP BY MiscTech.id
SELECT WebFrameworks.Name, COUNT(*) * 100.0 / (SELECT COUNT(*) FROM Responses) AS Percentage FROM Response_WebframeWantToWorkWith JOIN WebFrameworks ON Response_WebframeWantToWorkWith.WebFrameworks_id = WebFrameworks.id GROUP BY WebFrameworks_id