RWS Group interview question

DBMS based queries and a few coding questions