Yotto Labs Interview Question

question related to basic SQL operation