sql Batsman被Harbhajan大部分时间在IPL中解雇

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Batsman被Harbhajan大部分时间在IPL中解雇相关的知识,希望对你有一定的参考价值。

-- Batsman dismissed by Harbhajan Most Time in IPL

-- Batsman dismissed by Harbhajan Most Time in IPL

WITH DATA ( Match , Bowler , Batsman )  As
(
		SELECT	A.Match_Id,C.Player_Name As Bowler , D.Player_Name As PlayerName   
				FROM Ball_by_Ball A
					INNER JOIN Wicket_Taken B
					ON	CONCAT(A.Match_Id,A.Over_Id,A.Ball_Id,A.Innings_No)
						= CONCAT(B.Match_Id,B.Over_Id,B.Ball_Id,B.Innings_No)
					INNER JOIN Player C
					ON A.Bowler = C.Player_Id
					INNER JOIN Player D
					ON B.Player_Out = D.Player_Id
		WHERE A.Bowler = 50 AND B.Kind_Out IN (1,2,4,6,7,8)
)
SELECT Batsman ,COUNT(*) As'Dismissed_Times'
		FROM DATA
		GROUP BY Batsman
		ORDER BY Dismissed_Times DESC;

以上是关于sql Batsman被Harbhajan大部分时间在IPL中解雇的主要内容,如果未能解决你的问题,请参考以下文章

在PySpark / Python RDD中过滤

SQL 锁的使用

在 SQL Server 中批量插入部分引用的 CSV 文件

Oracle 内置sql函数大全

Pikachu-SQL注入

Fortify Sql 注入 for Oracle