Question: How many respondents who are learning to code want to work with the various DBs and which database are they currently using?
SQL:
SELECT Databases1.name AS have_worked_with, Databases2.name AS want_to_work_with, COUNT(*) FROM Response_DatabaseHaveWorkedWith JOIN Databases AS Databases1 ON Response_DatabaseHaveWorkedWith.Databases_id = Databases1.id JOIN Response_DatabaseWantToWorkWith ON Response_DatabaseWantToWorkWith.Response_id = Response_DatabaseHaveWorkedWith.Response_id JOIN Responses ON Response_DatabaseWantToWorkWith.Response_id = Responses.id JOIN Databases AS Databases2 ON Response_DatabaseWantToWorkWith.Databases_id = Databases2.id WHERE Responses.ResponderDescription = 'I am learning to code' GROUP BY Databases1.name, Databases2.name