Advertisement
TheFan1968

Convert Schedule from Conato to FASSHockeyCms

Jan 31st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.49 KB | None | 0 0
  1. INSERT INTO fhc_hockey_league_schedule (season_id, league_id, datum, zeit, home_team_id, away_team_id, game_venue_id)
  2. SELECT
  3.   2 as season,1 as league,
  4.   ter.datum,
  5.   ter.zeit,
  6.   cht.team_id as home,
  7.   cat.team_id as away,
  8.   cht.team_game_venue
  9. FROM tmp_termine ter
  10. JOIN fhc_hockey_club hc
  11.   on hc.club_name=ter.home
  12. join fhc_hockey_club_team cht
  13.   on cht.club_id = hc.club_id
  14. JOIN fhc_hockey_club ac
  15.   on ac.club_name=ter.away
  16. join fhc_hockey_club_team cat
  17.   on cat.club_id = ac.club_id
  18. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement