Coforge interview question

dbms query