Pregunta de entrevista de Expernetic

SQL quarries, They have given a task and questions from that task, one simple pattern based question.