Skip to content

Instantly share code, notes, and snippets.

@harsha547
Created December 18, 2016 21:20
Show Gist options
  • Save harsha547/63f07ae1a7d694bd20b55cc765e13d9f to your computer and use it in GitHub Desktop.
Save harsha547/63f07ae1a7d694bd20b55cc765e13d9f to your computer and use it in GitHub Desktop.
Players who has taken most catches in Indian Premier League ( 2008 - 2016 )
-- Players who has taken most catches in
-- Indian Premier League ( 2008 - 2016 )
SELECT TOP 10 Player.Player_Name ,
COUNT(*) AS 'Catches'
FROM Wicket_Taken
INNER JOIN Out_Type
ON Wicket_Taken.Kind_Out = Out_Type.Out_Id
INNER JOIN Player
ON Player.Player_Id = Wicket_Taken.Fielders
WHERE Out_Type.Out_Name = 'caught'
GROUP BY Player.Player_Name
ORDER BY Catches DESC
@harsha547
Copy link
Author

Result 👍

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment