Randy Moss vs. Deebo Samuel: Head-to-Head Stats Comparison
--------------------------------------
header_comp
WITH
h2h_record AS (
SELECT p1.person_id as p1_person_id, SUM(p1.win AND p1.type="reg") as p1_rs_wins, SUM(p1.win AND p1.type="post") as p1_po_wins, SUM(p1.loss AND p1.type="reg") as p1_rs_losses, SUM(p1.loss AND p1.type="post") as p1_po_losses, SUM(p1.tie AND p1.type="reg") as p1_rs_ties, SUM(p1.tie AND p1.type="post") as p1_po_ties, p2.person_id as p2_person_id, SUM(p2.win AND p2.type="reg") as p2_rs_wins, SUM(p2.win AND p2.type="post") as p2_po_wins, SUM(p2.loss AND p2.type="reg") as p2_rs_losses, SUM(p2.loss AND p2.type="post") as p2_po_losses, SUM(p2.tie AND p2.type="reg") as p2_rs_ties, SUM(p2.tie AND p2.type="post") as p2_po_ties
FROM (SELECT person_id, win as win, loss as loss, tie as tie, game_id, type, team_id
FROM sup_team_games
JOIN sup_games USING (game_id)
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE person_id=? ) as p1
JOIN (SELECT person_id, win as win, loss as loss, tie as tie, game_id, type, team_id FROM sup_team_games
JOIN sup_games USING (game_id)
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
),
h2h_record_tot AS (
SELECT person_id, rs_wins, rs_losses, rs_ties, po_wins, po_losses, po_ties
FROM (SELECT p1_person_id as person_id, p1_rs_wins as rs_wins, p1_rs_losses as rs_losses, p1_rs_ties as rs_ties, p1_po_wins as po_wins, p1_po_losses as po_losses, p1_po_ties as po_ties
FROM h2h_record
UNION SELECT p2_person_id as person_id, p2_rs_wins as rs_wins, p2_rs_losses as rs_losses, p2_rs_ties as rs_ties, p2_po_wins as po_wins, p2_po_losses as po_losses, p2_po_ties as po_ties
FROM h2h_record) as zzz
WHERE 1
)
SELECT person_id, rs_wins, rs_losses, rs_ties, po_wins, po_losses, po_ties, SUM(games) AS games, SUM(av) AS av, SUM(rec) AS rec, SUM(rec_yds) AS rec_yds, IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL) as rec_yds_per_rec_csk, ROUND(IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL),1) AS rec_yds_per_rec, SUM(rec_td) AS rec_td, SUM(rush_att) AS rush_att, SUM(rush_yds) AS rush_yds, IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL) as rush_yds_per_att_csk, ROUND(IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL),1) AS rush_yds_per_att, SUM(rush_td) AS rush_td, SUM(punt_ret) AS punt_ret, SUM(punt_ret_yds) AS punt_ret_yds, SUM(punt_ret_td) AS punt_ret_td, SUM(kick_ret) AS kick_ret, SUM(kick_ret_yds) AS kick_ret_yds, SUM(kick_ret_td) AS kick_ret_td, SUM(fantasy_points) as fantasy_points_csk, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
LEFT JOIN h2h_record_tot USING (person_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
SELECT name_short, name, award_id FROM sup_awards WHERE award_id IN ("probowl","allpro","apmvp","apopoy","apdpoy","aafcmvp","appoy","upimvp","upipoy","upiopoy","upidpoy","sbmvp") GROUP BY award_id
SQL PARAMS -- $VAR1 = [];
WITH
champ AS (
SELECT person_id, COUNT(*) as championships
FROM sup_player_team_seasons
LEFT JOIN sup_team_seasons USING (team_id, year_id, comp_id, phase_id)
WHERE person_id=? AND phase_id='reg' AND is_champion=1
),
awards AS (
SELECT person_id,
SUM(award_id="aafcmvp") as `aafcmvp`, SUM(award_id="allpro") as `allpro`, SUM(award_id="apdpoy") as `apdpoy`, SUM(award_id="apmvp") as `apmvp`, SUM(award_id="apopoy") as `apopoy`, SUM(award_id="appoy") as `appoy`, SUM(award_id="probowl") as `probowl`, SUM(award_id="sbmvp") as `sbmvp`, SUM(award_id="upidpoy") as `upidpoy`, SUM(award_id="upimvp") as `upimvp`, SUM(award_id="upiopoy") as `upiopoy`, SUM(award_id="upipoy") as `upipoy`
FROM sup_awards_players
WHERE person_id=?
)
SELECT person_id, is_hof, championships, awards.* FROM sup_players
LEFT JOIN awards USING (person_id)
LEFT JOIN champ USING (person_id)
WHERE person_id=?
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'SamuDe00',
'SamuDe00'
];
WITH
champ AS (
SELECT person_id, COUNT(*) as championships
FROM sup_player_team_seasons
LEFT JOIN sup_team_seasons USING (team_id, year_id, comp_id, phase_id)
WHERE person_id=? AND phase_id='reg' AND is_champion=1
),
awards AS (
SELECT person_id,
SUM(award_id="aafcmvp") as `aafcmvp`, SUM(award_id="allpro") as `allpro`, SUM(award_id="apdpoy") as `apdpoy`, SUM(award_id="apmvp") as `apmvp`, SUM(award_id="apopoy") as `apopoy`, SUM(award_id="appoy") as `appoy`, SUM(award_id="probowl") as `probowl`, SUM(award_id="sbmvp") as `sbmvp`, SUM(award_id="upidpoy") as `upidpoy`, SUM(award_id="upimvp") as `upimvp`, SUM(award_id="upiopoy") as `upiopoy`, SUM(award_id="upipoy") as `upipoy`
FROM sup_awards_players
WHERE person_id=?
)
SELECT person_id, is_hof, championships, awards.* FROM sup_players
LEFT JOIN awards USING (person_id)
LEFT JOIN champ USING (person_id)
WHERE person_id=?
SQL PARAMS -- $VAR1 = [
'MossRa00',
'MossRa00',
'MossRa00'
];
--------------------------------------
h2h_sum_rec
Page Setup Time: 0.00114 seconds
WITH
pgames AS (
SELECT person_id, game_id, team_id, year_id
FROM sup_team_games
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE 1
),
pgames_list AS (
SELECT p1.game_id
FROM (SELECT game_id, team_id
FROM pgames
WHERE person_id=? ) as p1
JOIN (SELECT game_id, team_id FROM pgames WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
)
SELECT person_id, COUNT(*) AS games, SUM(is_starter) AS games_started, SUM(targets) AS targets, SUM(rec) AS rec, SUM(rec_yds) AS rec_yds, IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL) as rec_yds_per_rec_csk, ROUND(IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL),1) AS rec_yds_per_rec, SUM(rec_td) AS rec_td, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0))) as catch_pct_csk, ROUND(100 * (IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0)))),1) AS catch_pct, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))) as rec_yds_per_tgt_csk, ROUND(IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))),1) AS rec_yds_per_tgt, SUM(rec_first_down) AS rec_first_down, SUM(rush_att) AS rush_att, SUM(rush_yds) AS rush_yds, IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL) as rush_yds_per_att_csk, ROUND(IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL),1) AS rush_yds_per_att, SUM(rush_td) AS rush_td, SUM(rush_first_down) AS rush_first_down, SUM(fantasy_points) as fantasy_points_csk, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_games as st
JOIN (SELECT game_id, year_id, comp_id, phase_id, team_id, opp_team_id, opp_comp_id, opp_phase_id, team_game_num_season, home_away_neutral FROM sup_team_games) as tg USING (game_id, team_id)
JOIN sup_phase_seasons USING (comp_id, phase_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)
JOIN sup_games USING (game_id)
JOIN pgames_list USING (game_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id LIMIT 0, 200
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
WITH
pgames AS (
SELECT person_id, game_id, team_id, year_id
FROM sup_team_games
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE 1
),
pgames_list AS (
SELECT p1.game_id
FROM (SELECT game_id, team_id
FROM pgames
WHERE person_id=? ) as p1
JOIN (SELECT game_id, team_id FROM pgames WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
)
SELECT person_id, COUNT(*) AS games, SUM(is_starter) AS games_started, SUM(targets) AS targets, SUM(rec) AS rec, SUM(rec_yds) AS rec_yds, IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL) as rec_yds_per_rec_csk, ROUND(IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL),1) AS rec_yds_per_rec, SUM(rec_td) AS rec_td, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0))) as catch_pct_csk, ROUND(100 * (IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0)))),1) AS catch_pct, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))) as rec_yds_per_tgt_csk, ROUND(IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))),1) AS rec_yds_per_tgt, SUM(rec_first_down) AS rec_first_down, SUM(rush_att) AS rush_att, SUM(rush_yds) AS rush_yds, IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL) as rush_yds_per_att_csk, ROUND(IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL),1) AS rush_yds_per_att, SUM(rush_td) AS rush_td, SUM(rush_first_down) AS rush_first_down, SUM(fantasy_points) as fantasy_points_csk, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_games as st
JOIN (SELECT game_id, year_id, comp_id, phase_id, team_id, opp_team_id, opp_comp_id, opp_phase_id, team_game_num_season, home_away_neutral FROM sup_team_games) as tg USING (game_id, team_id)
JOIN sup_phase_seasons USING (comp_id, phase_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)
JOIN sup_games USING (game_id)
JOIN pgames_list USING (game_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id LIMIT 0, 200
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
--------------------------------------
h2h_sum_return
Page Setup Time: 0.00075 seconds
WITH
pgames AS (
SELECT person_id, game_id, team_id, year_id
FROM sup_team_games
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE 1
),
pgames_list AS (
SELECT p1.game_id
FROM (SELECT game_id, team_id
FROM pgames
WHERE person_id=? ) as p1
JOIN (SELECT game_id, team_id FROM pgames WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
)
SELECT person_id, COUNT(*) AS games, SUM(is_starter) AS games_started, SUM(kick_ret) AS kick_ret, SUM(kick_ret_yds) AS kick_ret_yds, IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL) as kick_ret_yds_per_ret_csk, ROUND(IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL),1) AS kick_ret_yds_per_ret, SUM(kick_ret_td) AS kick_ret_td, SUM(punt_ret) AS punt_ret, SUM(punt_ret_yds) AS punt_ret_yds, IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL) as punt_ret_yds_per_ret_csk, ROUND(IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL),1) AS punt_ret_yds_per_ret, SUM(punt_ret_td) AS punt_ret_td, SUM(fantasy_points) as fantasy_points_csk, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_games as st
JOIN (SELECT game_id, year_id, comp_id, phase_id, team_id, opp_team_id, opp_comp_id, opp_phase_id, team_game_num_season, home_away_neutral FROM sup_team_games) as tg USING (game_id, team_id)
JOIN sup_phase_seasons USING (comp_id, phase_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)
JOIN sup_games USING (game_id)
JOIN pgames_list USING (game_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id LIMIT 0, 200
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
WITH
pgames AS (
SELECT person_id, game_id, team_id, year_id
FROM sup_team_games
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE 1
),
pgames_list AS (
SELECT p1.game_id
FROM (SELECT game_id, team_id
FROM pgames
WHERE person_id=? ) as p1
JOIN (SELECT game_id, team_id FROM pgames WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
)
SELECT person_id, COUNT(*) AS games, SUM(is_starter) AS games_started, SUM(kick_ret) AS kick_ret, SUM(kick_ret_yds) AS kick_ret_yds, IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL) as kick_ret_yds_per_ret_csk, ROUND(IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL),1) AS kick_ret_yds_per_ret, SUM(kick_ret_td) AS kick_ret_td, SUM(punt_ret) AS punt_ret, SUM(punt_ret_yds) AS punt_ret_yds, IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL) as punt_ret_yds_per_ret_csk, ROUND(IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL),1) AS punt_ret_yds_per_ret, SUM(punt_ret_td) AS punt_ret_td, SUM(fantasy_points) as fantasy_points_csk, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_games as st
JOIN (SELECT game_id, year_id, comp_id, phase_id, team_id, opp_team_id, opp_comp_id, opp_phase_id, team_game_num_season, home_away_neutral FROM sup_team_games) as tg USING (game_id, team_id)
JOIN sup_phase_seasons USING (comp_id, phase_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)
JOIN sup_games USING (game_id)
JOIN pgames_list USING (game_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id LIMIT 0, 200
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
--------------------------------------
h2h_gamelogs
Page Setup Time: 0.00153 seconds
WITH
pgames AS (
SELECT person_id, game_id, team_id, year_id
FROM sup_team_games
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE 1
),
pgames_list AS (
SELECT p1.game_id
FROM (SELECT game_id, team_id
FROM pgames
WHERE person_id=? ) as p1
JOIN (SELECT game_id, team_id FROM pgames WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
)
SELECT person_id, ts.name_abbr as team_name_abbr, ts.link as team_link, game_id, date, sup_games.link as game_link, rush_att, rush_yds, IF(rush_att, rush_yds/rush_att, NULL) as rush_yds_per_att_csk, ROUND(IF(rush_att, rush_yds/rush_att, NULL),1) AS rush_yds_per_att, rush_td, rush_first_down, targets, rec, rec_yds, IF(rec, rec_yds/rec, NULL) as rec_yds_per_rec_csk, ROUND(IF(rec, rec_yds/rec, NULL),1) AS rec_yds_per_rec, rec_td, rec/targets as catch_pct_csk, ROUND(100 * (rec/targets),1) AS catch_pct, IF(targets, rec_yds/targets, NULL) as rec_yds_per_tgt_csk, ROUND(IF(targets, rec_yds/targets, NULL),1) AS rec_yds_per_tgt, rec_first_down, kick_ret, kick_ret_yds, IF(kick_ret, kick_ret_yds/kick_ret, NULL) as kick_ret_yds_per_ret_csk, ROUND(IF(kick_ret, kick_ret_yds/kick_ret, NULL),1) AS kick_ret_yds_per_ret, kick_ret_td, punt_ret, punt_ret_yds, IF(punt_ret, punt_ret_yds/punt_ret, NULL) as punt_ret_yds_per_ret_csk, ROUND(IF(punt_ret, punt_ret_yds/punt_ret, NULL),1) AS punt_ret_yds_per_ret, punt_ret_td
FROM sup_player_games as st
JOIN (SELECT game_id, year_id, comp_id, phase_id, team_id, opp_team_id, opp_comp_id, opp_phase_id, team_game_num_season, home_away_neutral FROM sup_team_games) as tg USING (game_id, team_id)
JOIN sup_phase_seasons USING (comp_id, phase_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)
JOIN sup_games USING (game_id)
JOIN pgames_list USING (game_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
ORDER BY date DESC, person_id LIMIT 0, 20
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
WITH
pgames AS (
SELECT person_id, game_id, team_id, year_id
FROM sup_team_games
JOIN sup_player_games USING (game_id, team_id)
JOIN sup_phase_seasons USING (year_id, comp_id, phase_id)
WHERE 1
),
pgames_list AS (
SELECT p1.game_id
FROM (SELECT game_id, team_id
FROM pgames
WHERE person_id=? ) as p1
JOIN (SELECT game_id, team_id FROM pgames WHERE person_id=? ) as p2 ON p1.game_id=p2.game_id AND p1.team_id!=p2.team_id
)
SELECT person_id, ts.name_abbr as team_name_abbr, ts.link as team_link, game_id, date, sup_games.link as game_link, rush_att, rush_yds, IF(rush_att, rush_yds/rush_att, NULL) as rush_yds_per_att_csk, ROUND(IF(rush_att, rush_yds/rush_att, NULL),1) AS rush_yds_per_att, rush_td, rush_first_down, targets, rec, rec_yds, IF(rec, rec_yds/rec, NULL) as rec_yds_per_rec_csk, ROUND(IF(rec, rec_yds/rec, NULL),1) AS rec_yds_per_rec, rec_td, rec/targets as catch_pct_csk, ROUND(100 * (rec/targets),1) AS catch_pct, IF(targets, rec_yds/targets, NULL) as rec_yds_per_tgt_csk, ROUND(IF(targets, rec_yds/targets, NULL),1) AS rec_yds_per_tgt, rec_first_down, kick_ret, kick_ret_yds, IF(kick_ret, kick_ret_yds/kick_ret, NULL) as kick_ret_yds_per_ret_csk, ROUND(IF(kick_ret, kick_ret_yds/kick_ret, NULL),1) AS kick_ret_yds_per_ret, kick_ret_td, punt_ret, punt_ret_yds, IF(punt_ret, punt_ret_yds/punt_ret, NULL) as punt_ret_yds_per_ret_csk, ROUND(IF(punt_ret, punt_ret_yds/punt_ret, NULL),1) AS punt_ret_yds_per_ret, punt_ret_td
FROM sup_player_games as st
JOIN (SELECT game_id, year_id, comp_id, phase_id, team_id, opp_team_id, opp_comp_id, opp_phase_id, team_game_num_season, home_away_neutral FROM sup_team_games) as tg USING (game_id, team_id)
JOIN sup_phase_seasons USING (comp_id, phase_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)
JOIN sup_games USING (game_id)
JOIN pgames_list USING (game_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
ORDER BY date DESC, person_id LIMIT 0, 20
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00',
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
--------------------------------------
player_comp_rec
Page Setup Time: 0.00177 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(targets IS NULL) as targets_incomplete, SUM(targets) AS targets, SUM(rec IS NULL) as rec_incomplete, SUM(rec) AS rec, SUM(rec_yds IS NULL) as rec_yds_incomplete, SUM(rec_yds) AS rec_yds, IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL) as rec_yds_per_rec_csk, SUM(rec IS NULL)+SUM(rec_yds IS NULL) as rec_yds_per_rec_incomplete, ROUND(IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL),1) AS rec_yds_per_rec, SUM(rec_td IS NULL) as rec_td_incomplete, SUM(rec_td) AS rec_td, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0))) as catch_pct_csk, SUM(targets IS NULL)+SUM(rec IS NULL) as catch_pct_incomplete, ROUND(100 * (IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0)))),1) AS catch_pct, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))) as rec_yds_per_tgt_csk, SUM(targets IS NULL)+SUM(rec_yds IS NULL) as rec_yds_per_tgt_incomplete, ROUND(IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))),1) AS rec_yds_per_tgt, SUM(rec_first_down IS NULL) as rec_first_down_incomplete, SUM(rec_first_down) AS rec_first_down, SUM(rush_att IS NULL) as rush_att_incomplete, SUM(rush_att) AS rush_att, SUM(rush_yds IS NULL) as rush_yds_incomplete, SUM(rush_yds) AS rush_yds, IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL) as rush_yds_per_att_csk, SUM(rush_att IS NULL)+SUM(rush_yds IS NULL) as rush_yds_per_att_incomplete, ROUND(IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL),1) AS rush_yds_per_att, SUM(rush_td IS NULL) as rush_td_incomplete, SUM(rush_td) AS rush_td, SUM(rush_first_down IS NULL) as rush_first_down_incomplete, SUM(rush_first_down) AS rush_first_down, SUM(av IS NULL) as av_incomplete, SUM(av) AS av, SUM(fantasy_points) as fantasy_points_csk, SUM(fantasy_points IS NULL) as fantasy_points_incomplete, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(targets IS NULL) as targets_incomplete, SUM(targets) AS targets, SUM(rec IS NULL) as rec_incomplete, SUM(rec) AS rec, SUM(rec_yds IS NULL) as rec_yds_incomplete, SUM(rec_yds) AS rec_yds, IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL) as rec_yds_per_rec_csk, SUM(rec IS NULL)+SUM(rec_yds IS NULL) as rec_yds_per_rec_incomplete, ROUND(IF(SUM(rec), SUM(rec_yds)/SUM(rec), NULL),1) AS rec_yds_per_rec, SUM(rec_td IS NULL) as rec_td_incomplete, SUM(rec_td) AS rec_td, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0))) as catch_pct_csk, SUM(targets IS NULL)+SUM(rec IS NULL) as catch_pct_incomplete, ROUND(100 * (IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec,0))/SUM(IF(targets IS NOT NULL, targets,0)))),1) AS catch_pct, IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))) as rec_yds_per_tgt_csk, SUM(targets IS NULL)+SUM(rec_yds IS NULL) as rec_yds_per_tgt_incomplete, ROUND(IF(SUM(IF(targets IS NOT NULL, targets,0)) = 0, NULL, SUM(IF(targets IS NOT NULL,rec_yds,0))/SUM(IF(targets IS NOT NULL, targets,0))),1) AS rec_yds_per_tgt, SUM(rec_first_down IS NULL) as rec_first_down_incomplete, SUM(rec_first_down) AS rec_first_down, SUM(rush_att IS NULL) as rush_att_incomplete, SUM(rush_att) AS rush_att, SUM(rush_yds IS NULL) as rush_yds_incomplete, SUM(rush_yds) AS rush_yds, IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL) as rush_yds_per_att_csk, SUM(rush_att IS NULL)+SUM(rush_yds IS NULL) as rush_yds_per_att_incomplete, ROUND(IF(SUM(rush_att), SUM(rush_yds)/SUM(rush_att), NULL),1) AS rush_yds_per_att, SUM(rush_td IS NULL) as rush_td_incomplete, SUM(rush_td) AS rush_td, SUM(rush_first_down IS NULL) as rush_first_down_incomplete, SUM(rush_first_down) AS rush_first_down, SUM(av IS NULL) as av_incomplete, SUM(av) AS av, SUM(fantasy_points) as fantasy_points_csk, SUM(fantasy_points IS NULL) as fantasy_points_incomplete, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
Table Build Time: 0.04 seconds
Table Build Time: 0.04 seconds
--------------------------------------
player_comp_return
Page Setup Time: 0.00117 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(kick_ret IS NULL) as kick_ret_incomplete, SUM(kick_ret) AS kick_ret, SUM(kick_ret_yds IS NULL) as kick_ret_yds_incomplete, SUM(kick_ret_yds) AS kick_ret_yds, IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL) as kick_ret_yds_per_ret_csk, SUM(kick_ret IS NULL)+SUM(kick_ret_yds IS NULL) as kick_ret_yds_per_ret_incomplete, ROUND(IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL),1) AS kick_ret_yds_per_ret, SUM(kick_ret_td IS NULL) as kick_ret_td_incomplete, SUM(kick_ret_td) AS kick_ret_td, SUM(punt_ret IS NULL) as punt_ret_incomplete, SUM(punt_ret) AS punt_ret, SUM(punt_ret_yds IS NULL) as punt_ret_yds_incomplete, SUM(punt_ret_yds) AS punt_ret_yds, IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL) as punt_ret_yds_per_ret_csk, SUM(punt_ret IS NULL)+SUM(punt_ret_yds IS NULL) as punt_ret_yds_per_ret_incomplete, ROUND(IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL),1) AS punt_ret_yds_per_ret, SUM(punt_ret_td IS NULL) as punt_ret_td_incomplete, SUM(punt_ret_td) AS punt_ret_td, SUM(av IS NULL) as av_incomplete, SUM(av) AS av, SUM(fantasy_points) as fantasy_points_csk, SUM(fantasy_points IS NULL) as fantasy_points_incomplete, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(kick_ret IS NULL) as kick_ret_incomplete, SUM(kick_ret) AS kick_ret, SUM(kick_ret_yds IS NULL) as kick_ret_yds_incomplete, SUM(kick_ret_yds) AS kick_ret_yds, IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL) as kick_ret_yds_per_ret_csk, SUM(kick_ret IS NULL)+SUM(kick_ret_yds IS NULL) as kick_ret_yds_per_ret_incomplete, ROUND(IF(SUM(kick_ret), SUM(kick_ret_yds)/SUM(kick_ret), NULL),1) AS kick_ret_yds_per_ret, SUM(kick_ret_td IS NULL) as kick_ret_td_incomplete, SUM(kick_ret_td) AS kick_ret_td, SUM(punt_ret IS NULL) as punt_ret_incomplete, SUM(punt_ret) AS punt_ret, SUM(punt_ret_yds IS NULL) as punt_ret_yds_incomplete, SUM(punt_ret_yds) AS punt_ret_yds, IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL) as punt_ret_yds_per_ret_csk, SUM(punt_ret IS NULL)+SUM(punt_ret_yds IS NULL) as punt_ret_yds_per_ret_incomplete, ROUND(IF(SUM(punt_ret), SUM(punt_ret_yds)/SUM(punt_ret), NULL),1) AS punt_ret_yds_per_ret, SUM(punt_ret_td IS NULL) as punt_ret_td_incomplete, SUM(punt_ret_td) AS punt_ret_td, SUM(av IS NULL) as av_incomplete, SUM(av) AS av, SUM(fantasy_points) as fantasy_points_csk, SUM(fantasy_points IS NULL) as fantasy_points_incomplete, ROUND(SUM(fantasy_points),2) AS fantasy_points
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
Table Build Time: 0.04 seconds
Table Build Time: 0.04 seconds
--------------------------------------
player_comp_adv_rec
Page Setup Time: 0.00220 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(rec_yac IS NULL)+SUM(rec_yds IS NULL) as rec_air_yds_incomplete, SUM(rec_yds)-SUM(rec_yac) AS rec_air_yds, (SUM(rec_yds)-SUM(rec_yac))/SUM(rec) as rec_air_yds_per_rec_csk, SUM(rec_yac IS NULL)+SUM(rec_yds IS NULL)+SUM(rec IS NULL) as rec_air_yds_per_rec_incomplete, ROUND((SUM(rec_yds)-SUM(rec_yac))/SUM(rec),1) AS rec_air_yds_per_rec, SUM(rec_yac IS NULL) as rec_yac_incomplete, SUM(rec_yac) AS rec_yac, SUM(rec_yac)/SUM(rec) as rec_yac_per_rec_csk, SUM(rec_yac IS NULL)+SUM(rec IS NULL) as rec_yac_per_rec_incomplete, ROUND(SUM(rec_yac)/SUM(rec),1) AS rec_yac_per_rec, IF(SUM(targets), SUM(IFNULL(rec_target_yds,0))/SUM(targets), NULL) as rec_adot_csk, SUM(rec_target_yds IS NULL)+SUM(targets IS NULL) as rec_adot_incomplete, ROUND(IF(SUM(targets), SUM(IFNULL(rec_target_yds,0))/SUM(targets), NULL),1) AS rec_adot, SUM(rec_broken_tackles IS NULL) as rec_broken_tackles_incomplete, SUM(rec_broken_tackles) AS rec_broken_tackles, SUM(rec)/SUM(IFNULL(rec_broken_tackles,0)) as rec_broken_tackles_per_rec_csk, SUM(rec IS NULL)+SUM(rec_broken_tackles IS NULL) as rec_broken_tackles_per_rec_incomplete, ROUND(SUM(rec)/SUM(IFNULL(rec_broken_tackles,0)),1) AS rec_broken_tackles_per_rec, SUM(rec_drops IS NULL) as rec_drops_incomplete, SUM(rec_drops) AS rec_drops, SUM(rec_drops)/SUM(targets) as rec_drop_pct_csk, SUM(rec_drops IS NULL)+SUM(targets IS NULL) as rec_drop_pct_incomplete, ROUND(100 * (SUM(rec_drops)/SUM(targets)),1) AS rec_drop_pct, SUM(rec_target_int IS NULL) as rec_target_int_incomplete, SUM(rec_target_int) AS rec_target_int, SUM(rec_td IS NULL)+SUM(targets IS NULL)+SUM(rec_yds IS NULL)+SUM(rec_target_int IS NULL)+SUM(rec IS NULL) as rec_pass_rating_incomplete,
IF(SUM(targets),
ROUND(100 *
(1.0 / 6.0) *
(LEAST(GREATEST(((SUM(rec) / SUM(targets) ) - 0.3) / 0.2, 0), 2.375)
+ LEAST(GREATEST(((SUM(rec_yds) / SUM(targets)) - 3.0) / 4.0, 0.0), 2.375)
+ LEAST(GREATEST( (SUM(rec_td) / SUM(targets)) / 0.05, 0.0), 2.375)
+ LEAST(GREATEST((0.095 - (SUM(rec_target_int) / SUM(targets))) / 0.04, 0.0), 2.375)
),
1), NULL
) AS rec_pass_rating
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(rec_yac IS NULL)+SUM(rec_yds IS NULL) as rec_air_yds_incomplete, SUM(rec_yds)-SUM(rec_yac) AS rec_air_yds, (SUM(rec_yds)-SUM(rec_yac))/SUM(rec) as rec_air_yds_per_rec_csk, SUM(rec_yac IS NULL)+SUM(rec_yds IS NULL)+SUM(rec IS NULL) as rec_air_yds_per_rec_incomplete, ROUND((SUM(rec_yds)-SUM(rec_yac))/SUM(rec),1) AS rec_air_yds_per_rec, SUM(rec_yac IS NULL) as rec_yac_incomplete, SUM(rec_yac) AS rec_yac, SUM(rec_yac)/SUM(rec) as rec_yac_per_rec_csk, SUM(rec_yac IS NULL)+SUM(rec IS NULL) as rec_yac_per_rec_incomplete, ROUND(SUM(rec_yac)/SUM(rec),1) AS rec_yac_per_rec, IF(SUM(targets), SUM(IFNULL(rec_target_yds,0))/SUM(targets), NULL) as rec_adot_csk, SUM(rec_target_yds IS NULL)+SUM(targets IS NULL) as rec_adot_incomplete, ROUND(IF(SUM(targets), SUM(IFNULL(rec_target_yds,0))/SUM(targets), NULL),1) AS rec_adot, SUM(rec_broken_tackles IS NULL) as rec_broken_tackles_incomplete, SUM(rec_broken_tackles) AS rec_broken_tackles, SUM(rec)/SUM(IFNULL(rec_broken_tackles,0)) as rec_broken_tackles_per_rec_csk, SUM(rec IS NULL)+SUM(rec_broken_tackles IS NULL) as rec_broken_tackles_per_rec_incomplete, ROUND(SUM(rec)/SUM(IFNULL(rec_broken_tackles,0)),1) AS rec_broken_tackles_per_rec, SUM(rec_drops IS NULL) as rec_drops_incomplete, SUM(rec_drops) AS rec_drops, SUM(rec_drops)/SUM(targets) as rec_drop_pct_csk, SUM(rec_drops IS NULL)+SUM(targets IS NULL) as rec_drop_pct_incomplete, ROUND(100 * (SUM(rec_drops)/SUM(targets)),1) AS rec_drop_pct, SUM(rec_target_int IS NULL) as rec_target_int_incomplete, SUM(rec_target_int) AS rec_target_int, SUM(rec_td IS NULL)+SUM(targets IS NULL)+SUM(rec_yds IS NULL)+SUM(rec_target_int IS NULL)+SUM(rec IS NULL) as rec_pass_rating_incomplete,
IF(SUM(targets),
ROUND(100 *
(1.0 / 6.0) *
(LEAST(GREATEST(((SUM(rec) / SUM(targets) ) - 0.3) / 0.2, 0), 2.375)
+ LEAST(GREATEST(((SUM(rec_yds) / SUM(targets)) - 3.0) / 4.0, 0.0), 2.375)
+ LEAST(GREATEST( (SUM(rec_td) / SUM(targets)) / 0.05, 0.0), 2.375)
+ LEAST(GREATEST((0.095 - (SUM(rec_target_int) / SUM(targets))) / 0.04, 0.0), 2.375)
),
1), NULL
) AS rec_pass_rating
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.01 seconds
Table Build Time: 0.04 seconds
Table Build Time: 0.04 seconds
--------------------------------------
player_comp_adv_rush
Page Setup Time: 0.00095 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(rush_yac IS NULL)+SUM(rush_yds IS NULL) as rush_yds_before_contact_incomplete, SUM(rush_yds)-SUM(rush_yac) AS rush_yds_before_contact, (SUM(rush_yds)-SUM(rush_yac))/SUM(rush_att) as rush_yds_bc_per_rush_csk, SUM(rush_yac IS NULL)+SUM(rush_att IS NULL)+SUM(rush_yds IS NULL) as rush_yds_bc_per_rush_incomplete, ROUND((SUM(rush_yds)-SUM(rush_yac))/SUM(rush_att),1) AS rush_yds_bc_per_rush, SUM(rush_yac IS NULL) as rush_yac_incomplete, SUM(rush_yac) AS rush_yac, SUM(rush_yac)/SUM(rush_att) as rush_yac_per_rush_csk, SUM(rush_yac IS NULL)+SUM(rush_att IS NULL) as rush_yac_per_rush_incomplete, ROUND(SUM(rush_yac)/SUM(rush_att),1) AS rush_yac_per_rush, SUM(rush_broken_tackles IS NULL) as rush_broken_tackles_incomplete, SUM(rush_broken_tackles) AS rush_broken_tackles, SUM(rush_att)/SUM(rush_broken_tackles) as rush_broken_tackles_per_rush_csk, SUM(rush_broken_tackles IS NULL)+SUM(rush_att IS NULL) as rush_broken_tackles_per_rush_incomplete, ROUND(SUM(rush_att)/SUM(rush_broken_tackles),1) AS rush_broken_tackles_per_rush
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(rush_yac IS NULL)+SUM(rush_yds IS NULL) as rush_yds_before_contact_incomplete, SUM(rush_yds)-SUM(rush_yac) AS rush_yds_before_contact, (SUM(rush_yds)-SUM(rush_yac))/SUM(rush_att) as rush_yds_bc_per_rush_csk, SUM(rush_yac IS NULL)+SUM(rush_att IS NULL)+SUM(rush_yds IS NULL) as rush_yds_bc_per_rush_incomplete, ROUND((SUM(rush_yds)-SUM(rush_yac))/SUM(rush_att),1) AS rush_yds_bc_per_rush, SUM(rush_yac IS NULL) as rush_yac_incomplete, SUM(rush_yac) AS rush_yac, SUM(rush_yac)/SUM(rush_att) as rush_yac_per_rush_csk, SUM(rush_yac IS NULL)+SUM(rush_att IS NULL) as rush_yac_per_rush_incomplete, ROUND(SUM(rush_yac)/SUM(rush_att),1) AS rush_yac_per_rush, SUM(rush_broken_tackles IS NULL) as rush_broken_tackles_incomplete, SUM(rush_broken_tackles) AS rush_broken_tackles, SUM(rush_att)/SUM(rush_broken_tackles) as rush_broken_tackles_per_rush_csk, SUM(rush_broken_tackles IS NULL)+SUM(rush_att IS NULL) as rush_broken_tackles_per_rush_incomplete, ROUND(SUM(rush_att)/SUM(rush_broken_tackles),1) AS rush_broken_tackles_per_rush
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
Table Build Time: 0.04 seconds
Table Build Time: 0.04 seconds
--------------------------------------
player_comp_snaps
Page Setup Time: 0.00097 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(snap_counts_offense IS NULL) as snaps_offense_incomplete, SUM(snap_counts_offense) AS snaps_offense, SUM(snap_counts_offense)/SUM(team_snap_counts_off) as snaps_off_pct_csk, SUM(team_snap_counts_off IS NULL)+SUM(snap_counts_offense IS NULL) as snaps_off_pct_incomplete, ROUND(100 * (SUM(snap_counts_offense)/SUM(team_snap_counts_off)),1) AS snaps_off_pct, SUM(snap_counts_defense IS NULL) as snaps_defense_incomplete, SUM(snap_counts_defense) AS snaps_defense, SUM(snap_counts_defense)/SUM(team_snap_counts_def) as snaps_def_pct_csk, SUM(snap_counts_defense IS NULL)+SUM(team_snap_counts_def IS NULL) as snaps_def_pct_incomplete, ROUND(100 * (SUM(snap_counts_defense)/SUM(team_snap_counts_def)),1) AS snaps_def_pct, SUM(snap_counts_special_teams IS NULL) as snaps_special_teams_incomplete, SUM(snap_counts_special_teams) AS snaps_special_teams, SUM(snap_counts_special_teams)/SUM(team_snap_counts_st) as snaps_st_pct_csk, SUM(team_snap_counts_st IS NULL)+SUM(snap_counts_special_teams IS NULL) as snaps_st_pct_incomplete, ROUND(100 * (SUM(snap_counts_special_teams)/SUM(team_snap_counts_st)),1) AS snaps_st_pct
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
LEFT JOIN (SELECT team_id, year_id, phase_id, snap_counts_offense as team_snap_counts_off, snap_counts_defense as team_snap_counts_def, snap_counts_special_teams as team_snap_counts_st FROM sup_team_seasons) as tg_snap_counts USING (year_id, team_id, phase_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="reg"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
SELECT person_id, IF(MIN(age)=MAX(age), MIN(age), CONCAT(MIN(age), '-', MAX(age))) as age_range, MIN(year_id) as year_min, MAX(year_id) as year_max, SUM(games IS NULL) as games_incomplete, SUM(games) AS games, SUM(games_started IS NULL) as games_started_incomplete, SUM(games_started) AS games_started, SUM(snap_counts_offense IS NULL) as snaps_offense_incomplete, SUM(snap_counts_offense) AS snaps_offense, SUM(snap_counts_offense)/SUM(team_snap_counts_off) as snaps_off_pct_csk, SUM(team_snap_counts_off IS NULL)+SUM(snap_counts_offense IS NULL) as snaps_off_pct_incomplete, ROUND(100 * (SUM(snap_counts_offense)/SUM(team_snap_counts_off)),1) AS snaps_off_pct, SUM(snap_counts_defense IS NULL) as snaps_defense_incomplete, SUM(snap_counts_defense) AS snaps_defense, SUM(snap_counts_defense)/SUM(team_snap_counts_def) as snaps_def_pct_csk, SUM(snap_counts_defense IS NULL)+SUM(team_snap_counts_def IS NULL) as snaps_def_pct_incomplete, ROUND(100 * (SUM(snap_counts_defense)/SUM(team_snap_counts_def)),1) AS snaps_def_pct, SUM(snap_counts_special_teams IS NULL) as snaps_special_teams_incomplete, SUM(snap_counts_special_teams) AS snaps_special_teams, SUM(snap_counts_special_teams)/SUM(team_snap_counts_st) as snaps_st_pct_csk, SUM(team_snap_counts_st IS NULL)+SUM(snap_counts_special_teams IS NULL) as snaps_st_pct_incomplete, ROUND(100 * (SUM(snap_counts_special_teams)/SUM(team_snap_counts_st)),1) AS snaps_st_pct
FROM sup_player_team_seasons as st
JOIN sup_people USING (person_id)
JOIN sup_players USING (person_id)
JOIN sup_phase_seasons USING (comp_id, phase_id, year_id)
JOIN sup_comp_seasons USING (comp_id, year_id)
LEFT JOIN (SELECT team_id, year_id, phase_id, snap_counts_offense as team_snap_counts_off, snap_counts_defense as team_snap_counts_def, snap_counts_special_teams as team_snap_counts_st FROM sup_team_seasons) as tg_snap_counts USING (year_id, team_id, phase_id)
WHERE ((person_id=?) OR (person_id=?))
AND type="post"
GROUP BY person_id
ORDER BY person_id
SQL PARAMS -- $VAR1 = [
'SamuDe00',
'MossRa00'
];
Query Time: 0.00 seconds
Table Build Time: 0.03 seconds
Table Build Time: 0.03 seconds
--------------------------------------
SH->PARAM -- $VAR1 = {
'player_id1' => 'MossRa00',
'player_id2' => 'SamuDe00',
'match' => 'versus_playervplayer'
};
SH->PARAM_NO_DEFAULT -- $VAR1 = {
'player_id1' => 'MossRa00',
'player_id2' => 'SamuDe00'
};
Data coverage:
Player game data: since 1933. Scoring statistics (TD, XP, FG) are complete. Yardage and attempts statistics are nearly complete. Game participation data since 1970.
Player season data: all-time (since 1920). Scoring statistics (TD, XP, FG) are complete all-time. Yardage and attempts statistics were not recorded until 1932. Advanced stats since 2018.
Team Game data: since 1920. Before 1940, only wins, losses, points for, and points allowed are available. Scoring statistics (TD, XP, FG) are complete since 1920. Yardage and attempts statistics are nearly complete since 1933.
Team Season data: since 1940. Scoring statistics (TD, XP, FG) are complete all-time.
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.