Skip to content
Advertisement

Maximum mark in Subject with Staff name

Write a query to display list of staff name, subject name handled, maximum mark scored in that subject. Give an alias to the maximum mark as max_mark. Sort the result based on maximum mark in descending.

This is the schema diagram.

enter image description here

This is the code I have tried.

I was abled to pass one testcase but I could not abled to pass second testcase and I don’t know what second testcase is and also I am not getting what I have done wrong in my above code.Is there any way of getting solution for this problem.

Advertisement

Answer

It seems that You are looking for the following query:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement