Question: What office tool for synchronous communication/collaboration is the most used in each industry?
SQL:
select industry, name, counts from (   select r.industry, office.name, count(*) as counts,   ROW_NUMBER() OVER(PARTITION BY r.industry ORDER BY COUNT(*) DESC) AS rn   from Responses as r join Response_OfficeStackSyncHaveWorkedWith as res_stack   on res_stack.response_id = r.id join OfficeStackSync as office on res_stack.OfficeStackSync_id=office.id   where r.industry is not Null   group by r.industry, office.name)where rn=1