Skip to content
Advertisement

How do I get only the person with the top TotalsS for only one team?

I am using SQL Server. I created two views to get a few results and then made them into one select to use on the inner join. I’m sure there’s an easier way to do this. I couldn’t think of anything else at the moment. Please teach me!

My results

My results

What I’m looking for

What I'm looking for

Thank you for your time!

Advertisement

Answer

You can do it this way: It might give you many players per team if it happens that the max poinst per team has been reached by many players on the team

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