Ericsson interview question

Database joints