diff --git a/SMB3Explorer/Resources/Sql/PlayoffCareerStatsPitching.sql b/SMB3Explorer/Resources/Sql/PlayoffCareerStatsPitching.sql index 972a100..058db37 100644 --- a/SMB3Explorer/Resources/Sql/PlayoffCareerStatsPitching.sql +++ b/SMB3Explorer/Resources/Sql/PlayoffCareerStatsPitching.sql @@ -66,5 +66,5 @@ FROM [t_stats_pitching] tspitch LEFT JOIN t_season_stats tss ON ts.aggregatorID = tss.aggregatorID JOIN t_career_playoff_stats tcss ON ts.aggregatorID = tcss.aggregatorID -WHERE tl.name = 'Baseball United v2' +WHERE tl.GUID = CAST(@leagueId AS BLOB) ORDER BY totalPitches DESC \ No newline at end of file diff --git a/SMB3Explorer/Resources/Sql/SeasonStatsBatting.sql b/SMB3Explorer/Resources/Sql/SeasonStatsBatting.sql index 1a3b30f..4ba826f 100644 --- a/SMB3Explorer/Resources/Sql/SeasonStatsBatting.sql +++ b/SMB3Explorer/Resources/Sql/SeasonStatsBatting.sql @@ -7,7 +7,7 @@ FROM t_seasons JOIN t_leagues ON t_seasons.historicalLeagueGUID = t_leagues.GUID JOIN t_franchise tf ON t_leagues.GUID = tf.leagueGUID - WHERE t_leagues.name = 'Baseball United v2') + WHERE t_leagues.GUID = CAST(@leagueId AS BLOB)) SELECT ts.aggregatorID AS aggregatorID, ts.statsPlayerID AS statsPlayerID, tbpli.GUID AS baseballPlayerGUIDIfKnown, diff --git a/SMB3Explorer/Resources/Sql/TopPerformersPitching.sql b/SMB3Explorer/Resources/Sql/TopPerformersPitching.sql index 2c40515..1b121f9 100644 --- a/SMB3Explorer/Resources/Sql/TopPerformersPitching.sql +++ b/SMB3Explorer/Resources/Sql/TopPerformersPitching.sql @@ -60,7 +60,7 @@ FROM [v_baseball_player_info] vbpi LEFT JOIN t_baseball_player_local_ids tbpli ON vbpi.baseballPlayerGUID = tbpli.GUID LEFT JOIN t_stats_players tsp ON tbpli.localID = tsp.baseballPlayerLocalID LEFT JOIN t_stats ts ON tsp.statsPlayerID = ts.statsPlayerID - JOIN t_stats_pitching tspitch ON ts.aggregatorID = tspitch.aggregatorID + LEFT JOIN t_stats_pitching tspitch ON ts.aggregatorID = tspitch.aggregatorID LEFT JOIN t_baseball_players tbp ON tbpli.GUID = tbp.GUID diff --git a/SMB3Explorer/Resources/Sql/TopPerformersRookiesPitching.sql b/SMB3Explorer/Resources/Sql/TopPerformersRookiesPitching.sql index 26ab291..72b03e8 100644 --- a/SMB3Explorer/Resources/Sql/TopPerformersRookiesPitching.sql +++ b/SMB3Explorer/Resources/Sql/TopPerformersRookiesPitching.sql @@ -69,7 +69,7 @@ FROM [v_baseball_player_info] vbpi LEFT JOIN t_baseball_player_local_ids tbpli ON vbpi.baseballPlayerGUID = tbpli.GUID LEFT JOIN t_stats_players tsp ON tbpli.localID = tsp.baseballPlayerLocalID LEFT JOIN t_stats ts ON tsp.statsPlayerID = ts.statsPlayerID - JOIN t_stats_pitching tspitch ON ts.aggregatorID = tspitch.aggregatorID + LEFT JOIN t_stats_pitching tspitch ON ts.aggregatorID = tspitch.aggregatorID LEFT JOIN t_baseball_players tbp ON tbpli.GUID = tbp.GUID