Array
(
[0] => 257
[LeagueID] => 257
[1] => 6
[at_league_id_fk] => 6
[2] => 4
[sport_id_fk] => 4
[3] => Girls Varsity A
[LeagueName] => Girls Varsity A
[4] => Girls Varsity A Volleyball
[full_league_name] => Girls Varsity A Volleyball
[5] => G-V-Vball A
[short_league_name] => G-V-Vball A
[6] => 2024-2025
[season_year] => 2024-2025
[7] => 2
[gender_id_fk] => 2
[8] => 0
[registration_open] => 0
[9] => 1
[league_is_live] => 1
[10] => 0
[start_grade] => 0
[11] => 0
[end_grade] => 0
[12] => 60
[sort_order] => 25
[13] => volleyball-girls-v-a
[short_name] => volleyball-girls-v-a
[14] =>
[short_display_name] =>
[15] =>
[rules] =>
[16] => volleyball-2022-2023.pdf
[rules_pdf] => volleyball-2022-2023.pdf
[17] =>
[image] =>
[18] =>
[image_title] =>
[19] => 0
[use_otl] => 0
[20] => 0
[use_ties] => 0
[21] => 0
[uses_points] => 0
[22] => 1
[uses_win_per] => 1
[23] => 1
[uses_text_score] => 1
[24] => 1
[show_playoffs] => 1
[25] => 0
[show_second_standings] => 0
[26] => 0
[uses_fields] => 0
[27] => 0
[uses_feilds_text] => 0
[28] => Top 6 teams in each conference make the playoffs.
Top 2 teams in each conference get first round bye.
1st Rd of Playoffs: 3 VS 6, 4 VS 5 Within Each Conference.
Winners get reseeded for Quarters.
Quarters: 1 VS 4, 2 VS 3 Cross Conference.
Semis: 1W VS 4E WINNER PLAYS 2E VS 3W WINNER, 1E VS 4W WINNER PLAYS 2W VS 3E WINNER (Better seeds get home court).
MOST LIKELY CHAMPIONSHIP DOUBLEHEADER DATE:
SUNDAY MARCH 2, 2025 BUT PLEASE KEEP THURS 3/6/25 OPEN
LOCATION TO BE DETERMINED!!!
[playoff_rules] => Top 6 teams in each conference make the playoffs.
Top 2 teams in each conference get first round bye.
1st Rd of Playoffs: 3 VS 6, 4 VS 5 Within Each Conference.
Winners get reseeded for Quarters.
Quarters: 1 VS 4, 2 VS 3 Cross Conference.
Semis: 1W VS 4E WINNER PLAYS 2E VS 3W WINNER, 1E VS 4W WINNER PLAYS 2W VS 3E WINNER (Better seeds get home court).
MOST LIKELY CHAMPIONSHIP DOUBLEHEADER DATE:
SUNDAY MARCH 2, 2025 BUT PLEASE KEEP THURS 3/6/25 OPEN
LOCATION TO BE DETERMINED!!!
[29] => (2 TEAMS TIED)
1. HEAD TO HEAD (MATCHES, THEN GAMES, THEN POINTS).
2. STRENGTH OF SCHEDULE
(the team that achieved their win/loss record against the schedule with the highest combined winning pct of all of their opponents, meaning the team that played the hardest schedule, wins this tie-breaker.)
3. STRENGTH OF VICTORY
(the team that achieved their win total against opponents with the highest combined winning pct.)
4. RECORD VS PLAYOFF TEAMS BY PCT (unless both undefeated, then most wins vs playoff teams, then best games record vs playoff teams).
5. PLAY-IN MATCH FOR LAST PLAYOFF SPOT, COIN TOSS FOR SEEDING.
(3 OR MORE TEAMS TIED)
1. HEAD TO HEAD (RECORD OF ALL TIED TEAMS IN HEAD TO HEAD--FIRST MATCHES, THEN GAMES, THEN POINTS. IF # OF MATCHES PLAYED IS NOT EQUAL FIRST MATCH WINNING PCT THEN GAME WINNING PCT ONLY IN THE MATCHES BETWEEN THE TIED TEAMS).
STEPS 2-5 EXACTLY AS ABOVE.
EACH TIE-BREAKING STEP SERVES TO SEPARATE AS MANY TEAMS AS POSSIBLE, WHO WILL THEN BE PLACED IN THE STANDINGS IN THE ORDER IN WHICH THEY FINISH IN THAT TIEBREAKER.
IF SOME TEAMS ARE SEPARATED BY A TIE-BREAKING STEP, BUT OTHERS INVOLVED IN A MULTI-TEAM TIEBREAKER ARE STILL TIED, WE REVERT BACK TO TIE-BREAKER #1 AND REDO ALL TIE BREAKERS IN THE SAME ORDER WITH ONLY THE STATS PERTAINING TO THE TEAMS STILL TIED REMAINING AS PART OF THE EQUATION. (FOR EXAMPLE THE HEAD TO HEAD RECORD IS NOW CALCULATED AMONG ONLY THE TEAMS REMAINING IN A TIE AND NOT AMONG ALL THE TEAMS THAT WERE ORIGINALLY TIED.)
[tiebraker_rules] => (2 TEAMS TIED)
1. HEAD TO HEAD (MATCHES, THEN GAMES, THEN POINTS).
2. STRENGTH OF SCHEDULE
(the team that achieved their win/loss record against the schedule with the highest combined winning pct of all of their opponents, meaning the team that played the hardest schedule, wins this tie-breaker.)
3. STRENGTH OF VICTORY
(the team that achieved their win total against opponents with the highest combined winning pct.)
4. RECORD VS PLAYOFF TEAMS BY PCT (unless both undefeated, then most wins vs playoff teams, then best games record vs playoff teams).
5. PLAY-IN MATCH FOR LAST PLAYOFF SPOT, COIN TOSS FOR SEEDING.
(3 OR MORE TEAMS TIED)
1. HEAD TO HEAD (RECORD OF ALL TIED TEAMS IN HEAD TO HEAD--FIRST MATCHES, THEN GAMES, THEN POINTS. IF # OF MATCHES PLAYED IS NOT EQUAL FIRST MATCH WINNING PCT THEN GAME WINNING PCT ONLY IN THE MATCHES BETWEEN THE TIED TEAMS).
STEPS 2-5 EXACTLY AS ABOVE.
EACH TIE-BREAKING STEP SERVES TO SEPARATE AS MANY TEAMS AS POSSIBLE, WHO WILL THEN BE PLACED IN THE STANDINGS IN THE ORDER IN WHICH THEY FINISH IN THAT TIEBREAKER.
IF SOME TEAMS ARE SEPARATED BY A TIE-BREAKING STEP, BUT OTHERS INVOLVED IN A MULTI-TEAM TIEBREAKER ARE STILL TIED, WE REVERT BACK TO TIE-BREAKER #1 AND REDO ALL TIE BREAKERS IN THE SAME ORDER WITH ONLY THE STATS PERTAINING TO THE TEAMS STILL TIED REMAINING AS PART OF THE EQUATION. (FOR EXAMPLE THE HEAD TO HEAD RECORD IS NOW CALCULATED AMONG ONLY THE TEAMS REMAINING IN A TIE AND NOT AMONG ALL THE TEAMS THAT WERE ORIGINALLY TIED.)
[30] =>
[playoff_matchups] =>
[31] =>
[nav_class] =>
[32] => 0
[uses_goals] => 0
[33] =>
[uses_goals_label] =>
[34] => 1
[uses_no_score] => 1
[35] => 1
[uses_notes_in_score] => 1
[36] => 0
[is_archived] => 0
[37] => 1
[skip_ticker] => 1
[38] => admin_standings_order
[playoff_standing_function] => admin_standings_order
[39] => 1
[show_playoffs_games] => 1
[40] => 1
[show_playoff_bracket] => 1
[41] => 2024-12-31
[roster_lock_date] => 2024-12-31
[42] => 0000-00-00
[roster_lock_date_show] => 0000-00-00
[43] => 2024-10-29
[first_of_season] => 2024-10-29
[44] => 2025-01-30
[last_of_season] => 2025-01-30
[45] => 2024-10-16
[schedule_lock_date] => 2024-10-16
[46] => 2024-10-11
[schedule_compare_date] => 2024-10-11
[47] => 10
[number_of_games] => 10
[48] => 1200.00
[league_cost] => 1200.00
[49] => W
[season_letter] => W
[50] => 4
[games_num_before_date] => 4
[51] => 2024-12-01
[games_date_before_date] => 2024-12-01
[52] => 1
[games_num_after_date] => 1
[53] => 2025-01-21
[games_date_after_date] => 2025-01-21
[54] => 1
[sched_compare_ran] => 1
[55] => 0
[show_in_admin] => 0
[56] => 0.00
[ref_default_amount] => 0.00
[57] => 0.00
[ref_default_amount_2] => 0.00
[58] => 0.00
[ref_default_amount_3] => 0.00
[59] => 0.00
[ref_default_amount_4] => 0.00
[60] => 0.00
[ref_default_amount_5] => 0.00
[61] => 12
[num_teams_playoffs] => 12
[62] => 0
[use_team_names] => 0
[63] => http://myhsal.com/images/champs/2017/gvvba2017.jpg
[mobile_bg_image] => http://myhsal.com/images/champs/2017/gvvba2017.jpg
[64] => 0
[uses_roster_ranking] => 0
[65] => 0
[uses_matchups] => 0
[66] =>
[matchup_rules] =>
[67] => 0
[matchup_rules_id] => 0
[68] => 1
[needs_jersey_number] => 1
[69] => 1
[uses_home_and_away] => 1
[70] => /images/champs/2024/g-v-vball.JPG
[hero_image_desktop] => /images/champs/2024/g-v-vball.JPG
[71] => /images/champs/2024/g-v-vball.JPG
[hero_image_mobile] => /images/champs/2024/g-v-vball.JPG
[72] => 1
[uses_ref_3] => 1
[73] => 0
[show_championship_banner] => 0
[74] =>
[championship_watch_url] =>
[75] => 4
[sport_id] => 4
[76] => Volleyball
[sport_name] => Volleyball
[77] => 25
[78] => images/icon-volleyball.png
[sport_icon] => images/icon-volleyball.png
[79] => hbg-volleyball
[home_background_id] => hbg-volleyball
[80] => fa fa-trophy bg-red-dark
[sport_icon_mobile_nav] => fa fa-trophy bg-red-dark
[81] => /images/pictures/volleyball.jpg
[sport_bg_image] => /images/pictures/volleyball.jpg
[82] => /assets/images/icons/volleyball.png
[sport_icon_newsite] => /assets/images/icons/volleyball.png
)
SELECT G.GameID, GameDate, GameTime , G.HomeTeamID, G.AwayTeamID,
Home.TeamName as Home, Away.TeamName as Away, Complete, G.HomeTeamResult,
G.AwayTeamResult, G.HomeTeamScore, G.AwayTeamScore, Description, G.AMorPM,
SH.school_name as HomeSchool , SA.school_name as AwaySchool, gym_text,
Home.short_name as HShort, Away.short_name as AShort, L.short_name, Gyms.gym_name,
CASE
WHEN AMorPM = 'PM' and GameTime < 12000 and GameTime not in ('0','1','2','3','4','5')
THEN GameTime +120005
WHEN GameTime in ('0','1','2','3','4','5') THEN 235555
ELSE GameTime +5
END as 'NEWTIME', Gyms.add_1, Gyms.cross_st, Gyms.city, Gyms.state, Gyms.zip, G.gym_number,
Home.icon as Hicon, Away.icon as Aicon, SH.icon as SHicon, SA.icon as SAicon,
CASE
WHEN GameDate = 0
THEN '2099-12-29'
ELSE GameDate END as NewDate,
L.uses_matchups, L.matchup_rules_id, G.watch_link_url, Home.team_video_url,
L.full_league_name, S.sport_icon_newsite, L.uses_fields, L.uses_feilds_text
From Games G
Left Join Teams Home on Home.TeamID = HomeTeamID
Left Join Teams Away on Away.TeamID = AwayTeamID
Left Join Schools SH on SH.school_id = Home.school_id_fk
Left Join Schools SA on SA.school_id = Away.school_id_fk
LEFT JOIN Leagues L on L.LeagueID = G.LeagueID
LEFT JOIN Gyms on Gyms.gym_id = G.gym_id_fk
LEFT JOIN Sports S on S.sport_id = L.sport_id_fk
Where G.is_deleted = 0
AND Complete = 0 AND L.league_is_live = 1 AND L.LeagueID = 257
AND nullif(HomeTeamID,0) is not null AND nullif(AwayTeamID,0) is not null
AND G.GameTypeID in (1,2,3,4,5,6,7,8,9,10,11)
ORDER BY NewDate, HomeSchool ASC, NEWTIME ASC, GameTime ASC
LIMIT 3