Kantar interview question

Oops, java, dbms, sql query