Question: What % of respondents who code professionally use which sync tools?
SQL:
SELECT OfficeStackSync.name, COUNT(OfficeStackSync.id) * 100.0 / (SELECT COUNT(DISTINCT Response_id) FROM Response_OfficeStackSyncHaveWorkedWith) FROM OfficeStackSync JOIN Response_OfficeStackSyncHaveWorkedWith ON OfficeStackSync.id = Response_OfficeStackSyncHaveWorkedWith.OfficeStackSync_id JOIN Responses ON Responses.id = Response_OfficeStackSyncHaveWorkedWith.Response_id WHERE Responses.ResponderDescription = 'I am a developer by profession' GROUP BY OfficeStackSync.name
SELECT OfficeStackSync.Name, COUNT(*) * 100.0 / (SELECT COUNT(*) FROM Responses WHERE ResponderDescription = 'I am a developer by profession') AS Percentage FROM Response_OfficeStackSyncHaveWorkedWith JOIN Responses ON Responses.id = Response_OfficeStackSyncHaveWorkedWith.Response_id JOIN OfficeStackSync ON OfficeStackSync.id = Response_OfficeStackSyncHaveWorkedWith.OfficeStackSync_id WHERE Responses.ResponderDescription = 'I am a developer by profession' GROUP BY OfficeStackSync.Name