ABC interview question

Subqueries in dbms.and exception handling