mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 06:18:05 +02:00
6 lines
213 B
SQL
6 lines
213 B
SQL
CREATE VIEW GoalsPerPlayer AS (
|
|
SELECT player_id, name, team, SUM(goals) AS sum_goals
|
|
FROM Player
|
|
JOIN Participation ON Participation.player_id = Player.player_id
|
|
GROUP BY player_id
|
|
)
|