2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

db getext

This commit is contained in:
Martin Thoma 2013-07-27 17:14:28 +02:00
parent a430494180
commit fe6543ad0b
13 changed files with 315 additions and 0 deletions

View file

@ -0,0 +1,6 @@
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
)