TD interview question

SQL join queries