Question: How many respondents in percent want to use AI developer tools and which AI tools are those?
SQL:
SELECT AIDev.name, COUNT(AIDev.id) * 100.0 / (SELECT COUNT(DISTINCT Response_id) FROM Response_AIDevWantToWorkWith) FROM AIDev JOIN Response_AIDevWantToWorkWith ON Response_AIDevWantToWorkWith.AIDev_id = AIDev.id GROUP BY AIDev.id
SELECT AIDev.Name, COUNT(*) * 100.0 / (SELECT COUNT(*) FROM Responses) AS Percentage FROM Response_AIDevWantToWorkWith JOIN AIDev ON Response_AIDevWantToWorkWith.AIDev_id = AIDev.id GROUP BY AIDev.Name