EXL Service interview question

Write a sql query