LTM Limited interview question

dbms questions on theory and sql