Safe Security interview question

Sql queries- Joins select