Advertisement
apl-mhd

Zakaria Sir Assignment 2

Sep 16th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.27 KB | None | 0 0
  1. INSERT INTO matches(match_id, match_type, team1_id, team2_id, team1_goal, team2_goal, match_date) VALUES (23, 'Group',14,13,0,3, '2018-06-21' );
  2.  
  3. INSERT INTO performance(id, match_id, player_id, goals, assists, own_Goal, minutes_played)
  4. VALUES (441, 23, 371, 1, 0,0, 90);
  5.  
  6. INSERT INTO performance(id, match_id, player_id, goals, assists, own_Goal, minutes_played)
  7. VALUES (443, 23, 372, 0, 1,0, 90);
  8.  
  9. INSERT INTO performance(id, match_id, player_id, goals, assists, own_Goal, minutes_played)
  10. VALUES (442, 23, 378, 1, 0,0, 90);
  11.  
  12. INSERT INTO performance(id, match_id, player_id, goals, assists, own_Goal, minutes_played)
  13. VALUES (444, 23, 368, 1, 0,0, 90);
  14.  
  15. INSERT INTO performance(id, match_id, player_id, goals, assists, own_Goal, minutes_played)
  16. VALUES (445, 23, 369, 0, 1,0, 90);
  17.  
  18.  
  19.  
  20. /*
  21. pId= 371, Luka Modric, goal =1, assit 0
  22. pId = 378 Ante Rebic Croatia  goal = 1, assit 0
  23. pID = 368 Ivan Rakitic Croatia   goal=1, assist = 0
  24.  
  25. pId = 372 Marcelo Brozovic  Croatia  goal =0 , assit 1
  26. pid 369 Mateo Kovacic Croatia  goal =0 , assit 1
  27.  
  28.  
  29. SELECT player_id, player_name, team.team_name FROM player
  30. JOIN team ON player.team_id = team.team_id
  31. WHERE team.team_id = 13;
  32. http://www.goal.com/en-gb/match/argentina-v-croatia/commentary-result/bwhgq3x658klgh6zg42l2882x
  33.  
  34.  
  35. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement