NiCE interview question

SQL queries