Yotto Labs interview question

question related to basic SQL operation