Help me in solving SQW01 problem

My issue

My code

/*

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