Question:
I have a table like this:
I want to find the highest quantity per day but I want to see the category as well like this:
The easiest way to write the query is:
But it does not show the category. Is there any way to do it without using join?
Answer:
You could use
ROW_NUMBER
here:
If you have better answer, please add a comment about this, thank you!