ANR Software interview question

dbms concepts and the sql queries