Question: What % of people who responded want to keep using their current asynchronous communication tool by communication tool?
SQL:
SELECT OfficeStackAsync.name, COUNT(OfficeStackAsync.id) * 100.0 / count2 FROM OfficeStackAsync JOIN Response_OfficeStackAsyncHaveWorkedWith ON Response_OfficeStackAsyncHaveWorkedWith.OfficeStackAsync_id = OfficeStackAsync.id JOIN Response_OfficeStackAsyncWantToWorkWith ON Response_OfficeStackAsyncWantToWorkWith.Response_id = Response_OfficeStackAsyncHaveWorkedWith.Response_id AND Response_OfficeStackAsyncWantToWorkWith.OfficeStackAsync_id = OfficeStackAsync.id JOIN (SELECT OfficeStackAsync.name AS name2, COUNT(OfficeStackAsync.id) AS count2 FROM OfficeStackAsync JOIN Response_OfficeStackAsyncHaveWorkedWith ON Response_OfficeStackAsyncHaveWorkedWith.OfficeStackAsync_id = OfficeStackAsync.id GROUP BY OfficeStackAsync.id) ON OfficeStackAsync.name = name2 GROUP BY OfficeStackAsync.id