EXL Service Interview Question

How to extract data from tables in SQL