From d80a931b1a3010cd2bd02950b62a3c3c61386dc8 Mon Sep 17 00:00:00 2001 From: Jacob Matson Date: Sun, 21 Apr 2024 02:14:12 +0000 Subject: [PATCH] fix matchup page --- evidence/pages/nba/historical_matchups.md | 85 +++++++++++------------ 1 file changed, 40 insertions(+), 45 deletions(-) diff --git a/evidence/pages/nba/historical_matchups.md b/evidence/pages/nba/historical_matchups.md index 79773e1..f03eccb 100644 --- a/evidence/pages/nba/historical_matchups.md +++ b/evidence/pages/nba/historical_matchups.md @@ -2,8 +2,8 @@ Ever wondered if the '86 Celtics could beat the '96 Bulls? Wonder no more! ```sql elo_history - select * - from nba_elo_history.nba_elo + select A.* + from nba_elo_history.nba_elo A union all select l.game_date as date, @@ -31,34 +31,34 @@ Ever wondered if the '86 Celtics could beat the '96 Bulls? Wonder no more! ``` ```sql seasons - select season - from ${elo_history} + select A.season + from ${elo_history} A group by all - order by season + order by A.season ``` ```sql team1 - select * from ( - select season, team1 as team - from ${elo_history} + select C.* from ( + select A.season, A.team1 as team + from ${elo_history} A union all - select season, team2 - from ${elo_history} ) - where season = '${inputs.team1_season_dd.value}' + select B.season, B.team2 + from ${elo_history} B) as C + where C.season = ${inputs.team1_season_dd.value} group by all - order by team + order by C.team ``` ```sql team2 - select * from ( - select season, team1 as team - from ${elo_history} + select C.* from ( + select A.season, A.team1 as team + from ${elo_history} AS A union all - select season, team2 - from ${elo_history} ) - where season = '${inputs.team2_season_dd.value}' + select B.season, B.team2 + from ${elo_history} AS B ) AS C + where C.season = ${inputs.team2_season_dd.value} group by all - order by team + order by C.team ``` +_If you don't like the current results, you can modify the elo inputs with this slider._ - - - - _If you don't like the current results, you can modify the elo inputs with this slider._ +### Elo Slider - ### Elo Slider - - -
- The current value is {inputs.elo_slider}. -
-
+ +
+The current value is {inputs.elo_slider}.