Question: What % of people want to start using which AI search tool?
SQL:
SELECT AISearch.name, COUNT(AISearch.id) * 100.0 / (SELECT COUNT(DISTINCT Response_id) FROM Response_AISearchWantToWorkWith) FROM AISearch JOIN Response_AISearchWantToWorkWith ON Response_AISearchWantToWorkWith.AISearch_id = AISearch.id GROUP BY AISearch.id
SELECT AISearch.Name, COUNT(*) * 100.0 / (SELECT COUNT(*) FROM Responses) AS Percentage FROM Response_AISearchWantToWorkWith JOIN AISearch ON Response_AISearchWantToWorkWith.AISearch_id = AISearch.id GROUP BY AISearch.Name