SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CAST(SUM(CASE WHEN type = 'X' AND (event = 'Single' OR event = 'Double' OR event = 'Triple' ) THEN 1 ELSE 0 END) AS float)
  2. / CAST((COUNT(DISTINCT ab_id) - SUM(CASE WHEN pitch_num = 1 AND (event = 'Catcher Interference' OR event = 'Sac Bunt' OR event = 'Sacrifice Bunt DP' OR event = 'Walk' OR event = 'Intent Walk' OR event = 'Hit By Pitch' OR event = 'Strikeout' OR event = 'Home Run' OR event = 'Runner Out') THEN 1 ELSE 0 END)) AS float)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top