a guest Feb 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- CAST(SUM(CASE WHEN (type = 'X' AND (event = 'Single' OR event = 'Double' OR event = 'Triple' OR event = 'Home Run')) OR ((event = 'Walk' OR event = 'Intent Walk' OR event = 'Hit By Pitch') AND (pitch_num = 1)) THEN 1 ELSE 0 END) AS float)
- / CAST((COUNT(DISTINCT ab_id) - SUM(CASE WHEN event = 'Catcher Interference' OR event = 'Batter Interference' OR event = 'Runner Out' THEN 1 ELSE 0 END)) AS float)
RAW Paste Data