IBM Interview Question

SQL Question and Coding question