Question: What percentage of participants want to keep using a framework they are currently using by framework?
SQL:
SELECT MiscTech.name, COUNT(MiscTech.id) * 100.0 / count2 FROM MiscTech JOIN Response_MiscTechHaveWorkedWith ON Response_MiscTechHaveWorkedWith.MiscTech_id = MiscTech.id JOIN Response_MiscTechWantToWorkWith ON Response_MiscTechWantToWorkWith.Response_id = Response_MiscTechHaveWorkedWith.Response_id AND Response_MiscTechWantToWorkWith.MiscTech_id = MiscTech.id JOIN (SELECT MiscTech.name AS name2, COUNT(MiscTech.id) AS count2 FROM MiscTech JOIN Response_MiscTechHaveWorkedWith ON Response_MiscTechHaveWorkedWith.MiscTech_id = MiscTech.id GROUP BY MiscTech.id) ON MiscTech.name = name2 GROUP BY MiscTech.id