Docsity

Databases cheat sheet, Cheat Sheet of Computer Science

Toggle sidebar
bg1
https://www.baseball-reference.com/players/r/ruthba01.shtml
โ—Runs Created (RC)
โ—‹ obp*tb OR TOB*BA/PA.
โ—Park-Adjusted Runs Created (PARC)
โ—Park-Adjusted Runs Created per 27 Outs (PARC/27)
โ—PARC Against (PARCA)
โ— OBP (this is the weird one)
โ—‹ CASE
โ—‹ WHEN hbp IS NOT NULL AND sf IS NOT NULL AND h+bb+hbp+sf > 0 THEN
(h+bb+hbp)/(ab+bb+hbp+sf)
โ—‹ WHEN hbp IS NULL AND sf IS NOT NULL AND ab+bb+sf > 0 THEN
(h+bb)/(ab+bb+sf)
โ—‹ WHEN hbp IS NOT NULL AND sf IS NULL AND ab+bb+hbp > 0 THEN
(h+bb+hbp)/(ab+bb+hbp)
โ—‹ WHEN hbp IS NULL AND sf IS NULL and ab+bb > 0 THEN (h+bb)/(ab+bb)
โ—‹ ELSE 0
โ— WHIP
โ—‹ 3*(h+bb)/ipouts OR (SELECT 3*(SUM(h)+SUM(bb))/SUM(ipouts) FROM
pitching)

Partial preview of the text

Download Databases cheat sheet and more Cheat Sheet Computer Science in PDF only on Docsity!

https://www.baseball-reference.com/players/r/ruthba01.shtml

โ— Runs Created (RC)

โ—‹ obptb OR TOBBA/PA.

โ— Park-Adjusted Runs Created (PARC)

โ— Park-Adjusted Runs Created per 27 Outs (PARC/27)

โ— PARC Against (PARCA)

โ— OBP (this is the weird one) โ—‹ CASE โ—‹ WHEN hbp IS NOT NULL AND sf IS NOT NULL AND h+bb+hbp+sf > 0 THEN (h+bb+hbp)/(ab+bb+hbp+sf) โ—‹ WHEN hbp IS NULL AND sf IS NOT NULL AND ab+bb+sf > 0 THEN (h+bb)/(ab+bb+sf) โ—‹ WHEN hbp IS NOT NULL AND sf IS NULL AND ab+bb+hbp > 0 THEN (h+bb+hbp)/(ab+bb+hbp) โ—‹ WHEN hbp IS NULL AND sf IS NULL and ab+bb > 0 THEN (h+bb)/(ab+bb) โ—‹ ELSE 0 โ— WHIP โ—‹ 3(h+bb)/ipouts OR (SELECT 3(SUM(h)+SUM(bb))/SUM(ipouts) FROM pitching)