GEP interview question

Regarding the dbms and sql