Team Game Stats Finder - Pro Basketball
Current Search
For single games, in the NBA/BAA, by the Milwaukee Bucks, against the Toronto Raptors, in the regular season, sorted by descending Points.
THIS QUESTION WAS ANSWERED USING
POWERED BY
Your All Access Pass to the
Pro Basketball
Database
Go beyond the basics. Become a Stathead
Start Your FREE Trial
Display Query »
--------------------------------------
main
Page Setup Time: 0.00217 seconds
SELECT ts.name_abbr as team_name_abbr, ts.link as team_link, os.name_abbr as opp_name_abbr, opp_team_link, date, game_id, year_id as year_id_csk, IF(comp_id="WNBA", year_id, CONCAT(year_id-1,"-",SUBSTRING(year_id,3,2))) as year_id, IF(home_away_neutral="H","",IF(home_away_neutral="A","@","N")) as game_location, (SELECT pts-opp_pts+IFNULL(pts,0)/100 FROM sup_team_games tg2 WHERE tg2.game_id=st.game_id AND tg2.team_id=st.team_id) as game_result_csk, (SELECT CONCAT(IF(win=1,'W,',IF(loss=1,'L,','T,')),' ',pts,'-',opp_pts,IF(overtimes>0, ' (', ''),IF(overtimes>1, overtimes, ''),IF(overtimes>0, 'OT)', '')) FROM sup_team_games tg2 WHERE tg2.game_id=st.game_id AND tg2.team_id=st.team_id) as game_result, sup_games.link as game_link, comp_id, fg, fga, IF(fga, fg / fga, NULL) as fg_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(fga, fg / fga, NULL),3)) AS fg_pct, (fg - IFNULL(fg3, 0)) AS fg2, (fga - IFNULL(fg3a, 0)) AS fg2a, (fg - IFNULL(fg3, 0)) / (fga - IFNULL(fg3a, 0)) as fg2_pct_csk, TRIM(LEADING '0' FROM ROUND((fg - IFNULL(fg3, 0)) / (fga - IFNULL(fg3a, 0)),3)) AS fg2_pct, fg3, fg3a, IF(fg3a, fg3 / fg3a, NULL) as fg3_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(fg3a, fg3 / fg3a, NULL),3)) AS fg3_pct, ft, fta, IF(fta, ft / fta, NULL) as ft_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(fta, ft / fta, NULL),3)) AS ft_pct, pts, mp, opp_fg, opp_fga, IF(opp_fga, opp_fg / opp_fga, NULL) as opp_fg_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(opp_fga, opp_fg / opp_fga, NULL),3)) AS opp_fg_pct, (opp_fg - IFNULL(opp_fg3, 0)) AS opp_fg2, (opp_fga - IFNULL(opp_fg3a, 0)) AS opp_fg2a, IF((opp_fga - IFNULL(opp_fg3a, 0)), (opp_fg - IFNULL(opp_fg3, 0)) / (opp_fga - IFNULL(opp_fg3a, 0)), NULL) as opp_fg2_pct_csk, TRIM(LEADING '0' FROM ROUND(IF((opp_fga - IFNULL(opp_fg3a, 0)), (opp_fg - IFNULL(opp_fg3, 0)) / (opp_fga - IFNULL(opp_fg3a, 0)), NULL),3)) AS opp_fg2_pct, opp_fg3, opp_fg3a, IF(opp_fg3a, opp_fg3 / opp_fg3a, NULL) as opp_fg3_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(opp_fg3a, opp_fg3 / opp_fg3a, NULL),3)) AS opp_fg3_pct, opp_ft, opp_fta, IF(opp_fta, opp_ft / opp_fta, NULL) as opp_ft_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(opp_fta, opp_ft / opp_fta, NULL),3)) AS opp_ft_pct, opp_pts
FROM sup_team_games as st
JOIN sup_games USING (game_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
JOIN (SELECT team_id, year_id, name_abbr, name, link FROM sup_team_seasons GROUP BY team_id, year_id ) as ts USING (team_id, year_id)
LEFT JOIN (SELECT team_id as opp_team_id, link as opp_team_link, year_id, name_abbr FROM sup_team_seasons GROUP BY team_id, year_id ) as os USING (opp_team_id, year_id)
WHERE type=?
AND opp_team_id=?
AND comp_id IN('NBA','BAA')
AND team_id=?
AND date < current_date()
ORDER BY pts DESC, date DESC, team_id LIMIT 0, 20
SQL PARAMS -- $VAR1 = [
'reg',
'TOR',
'MIL'
];
Query Time: 0.06 seconds
Table Build Time: 0.07 seconds
--------------------------------------
SH->PARAM -- $VAR1 = {
'timeframe' => 'seasons',
'comp_type' => 'reg',
'opp_team_id' => 'TOR',
'team_game_max' => 84,
'order_by' => 'pts',
'comp_id' => 'NBA',
'match' => 'team_game',
'team_game_min' => 1,
'team_id' => 'MIL'
};
SH->PARAM_NO_DEFAULT -- $VAR1 = {
'opp_team_id' => 'TOR',
'team_id' => 'MIL'
};
Show Criteria
Hide Criteria
--------------------------------------
main
Page Setup Time: 0.00217 seconds
SELECT ts.name_abbr as team_name_abbr, ts.link as team_link, os.name_abbr as opp_name_abbr, opp_team_link, date, game_id, year_id as year_id_csk, IF(comp_id="WNBA", year_id, CONCAT(year_id-1,"-",SUBSTRING(year_id,3,2))) as year_id, IF(home_away_neutral="H","",IF(home_away_neutral="A","@","N")) as game_location, (SELECT pts-opp_pts+IFNULL(pts,0)/100 FROM sup_team_games tg2 WHERE tg2.game_id=st.game_id AND tg2.team_id=st.team_id) as game_result_csk, (SELECT CONCAT(IF(win=1,'W,',IF(loss=1,'L,','T,')),' ',pts,'-',opp_pts,IF(overtimes>0, ' (', ''),IF(overtimes>1, overtimes, ''),IF(overtimes>0, 'OT)', '')) FROM sup_team_games tg2 WHERE tg2.game_id=st.game_id AND tg2.team_id=st.team_id) as game_result, sup_games.link as game_link, comp_id, fg, fga, IF(fga, fg / fga, NULL) as fg_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(fga, fg / fga, NULL),3)) AS fg_pct, (fg - IFNULL(fg3, 0)) AS fg2, (fga - IFNULL(fg3a, 0)) AS fg2a, (fg - IFNULL(fg3, 0)) / (fga - IFNULL(fg3a, 0)) as fg2_pct_csk, TRIM(LEADING '0' FROM ROUND((fg - IFNULL(fg3, 0)) / (fga - IFNULL(fg3a, 0)),3)) AS fg2_pct, fg3, fg3a, IF(fg3a, fg3 / fg3a, NULL) as fg3_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(fg3a, fg3 / fg3a, NULL),3)) AS fg3_pct, ft, fta, IF(fta, ft / fta, NULL) as ft_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(fta, ft / fta, NULL),3)) AS ft_pct, pts, mp, opp_fg, opp_fga, IF(opp_fga, opp_fg / opp_fga, NULL) as opp_fg_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(opp_fga, opp_fg / opp_fga, NULL),3)) AS opp_fg_pct, (opp_fg - IFNULL(opp_fg3, 0)) AS opp_fg2, (opp_fga - IFNULL(opp_fg3a, 0)) AS opp_fg2a, IF((opp_fga - IFNULL(opp_fg3a, 0)), (opp_fg - IFNULL(opp_fg3, 0)) / (opp_fga - IFNULL(opp_fg3a, 0)), NULL) as opp_fg2_pct_csk, TRIM(LEADING '0' FROM ROUND(IF((opp_fga - IFNULL(opp_fg3a, 0)), (opp_fg - IFNULL(opp_fg3, 0)) / (opp_fga - IFNULL(opp_fg3a, 0)), NULL),3)) AS opp_fg2_pct, opp_fg3, opp_fg3a, IF(opp_fg3a, opp_fg3 / opp_fg3a, NULL) as opp_fg3_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(opp_fg3a, opp_fg3 / opp_fg3a, NULL),3)) AS opp_fg3_pct, opp_ft, opp_fta, IF(opp_fta, opp_ft / opp_fta, NULL) as opp_ft_pct_csk, TRIM(LEADING '0' FROM ROUND(IF(opp_fta, opp_ft / opp_fta, NULL),3)) AS opp_ft_pct, opp_pts
FROM sup_team_games as st
JOIN sup_games USING (game_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
JOIN (SELECT team_id, year_id, name_abbr, name, link FROM sup_team_seasons GROUP BY team_id, year_id ) as ts USING (team_id, year_id)
LEFT JOIN (SELECT team_id as opp_team_id, link as opp_team_link, year_id, name_abbr FROM sup_team_seasons GROUP BY team_id, year_id ) as os USING (opp_team_id, year_id)
WHERE type=?
AND opp_team_id=?
AND comp_id IN('NBA','BAA')
AND team_id=?
AND date < current_date()
ORDER BY pts DESC, date DESC, team_id LIMIT 0, 20
SQL PARAMS -- $VAR1 = [
'reg',
'TOR',
'MIL'
];
Query Time: 0.06 seconds
Table Build Time: 0.07 seconds
--------------------------------------
SH->PARAM -- $VAR1 = {
'timeframe' => 'seasons',
'comp_type' => 'reg',
'opp_team_id' => 'TOR',
'team_game_max' => 84,
'order_by' => 'pts',
'comp_id' => 'NBA',
'match' => 'team_game',
'team_game_min' => 1,
'team_id' => 'MIL'
};
SH->PARAM_NO_DEFAULT -- $VAR1 = {
'opp_team_id' => 'TOR',
'team_id' => 'MIL'
};
Data coverage: since 1946-47 unless otherwise noted. Regular season: PTS, FG, FT, 3P complete all-time. FTA complete back to 1948-49. FGA, TRB, AST, PF, GS over 99% complete back to 1975-76. MP over 99% complete back to 1976-77. +/- complete back to 1996-97. All other box score stats (3PA, ORB, DRB, STL, BLK, TOV) complete back to 1983-84. Playoffs: PTS, FG, FT, FTA, 3P, 3PA complete all-time. PF complete back to 1948-49. FGA, TRB, AST complete back to 1962-63. GS complete back to 1973-74. MP complete back to 1974-75. +/- complete back to 1996-97. STL, BLK, TOV complete back to 1982-83. ORB, DRB complete back to 1983-84. BPM not available for WNBA & ABA. Please see our data coverage page for details.

We're Social...for Statheads
Site Last Updated:
Question, Comment, Feedback, or Correction?
Subscribe to our Free Email Newsletter
Do you have a sports website? Or write about sports? We have tools and resources that can help you use sports data. Find out more.