Question: What processes, tools, and programs do respondents (in percentage) report having inside their organization?
SQL:
SELECT ProfessionalTech.name AS tech, COUNT(ProfessionalTech.id) * 100.0 / (SELECT COUNT(DISTINCT Response_ProfessionalTech.Response_id) FROM Response_ProfessionalTech) AS num_responses FROM ProfessionalTech JOIN Response_ProfessionalTech ON ProfessionalTech.id = Response_ProfessionalTech.ProfessionalTech_id GROUP BY ProfessionalTech.name
SELECT ProfessionalTech.Name, COUNT(*) * 100.0 / (SELECT COUNT(*) FROM Responses) AS Percentage FROM ProfessionalTech JOIN Response_ProfessionalTech ON ProfessionalTech.id = Response_ProfessionalTech.ProfessionalTech_id GROUP BY ProfessionalTech.Name