Question: What % of professional developers who responded have which employment status?
SQL:
SELECT Employment.name, COUNT(Response_Employment.Response_id) * 100.0 / (SELECT COUNT(DISTINCT Response_Employment.Response_id) FROM Response_Employment JOIN Responses ON Responses.id = Response_Employment.Response_id WHERE Responses.ResponderDescription = 'I am a developer by profession') FROM Response_Employment JOIN Employment ON Employment.id = Response_Employment.Employment_id JOIN Responses ON Responses.id = Response_Employment.Response_id WHERE Responses.ResponderDescription = 'I am a developer by profession' GROUP BY Employment.id