EXL Service interview question

How to extract data from tables in SQL