Pregunta de entrevista de Coditation Systems

Oops conditional question and mysql joins