Help me in solving SQW08 problem

My issue

Learning course: SQL at Work
Problem Link: CodeChef: Practical coding for everyone