2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 14:28:05 +02:00
LaTeX-examples/documents/musterloesung-db-klausur-a/d3b.sql

11 lines
265 B
MySQL
Raw Normal View History

2013-07-27 17:14:28 +02:00
CREATE VIEW AlwaysParticipating AS (
SELECT player_id, name
FROM Player
JOIN Participation ON Player.player_id = Participation.player_id
HAVING SUM(Participation.cup_id) =
(
SELECT SUM(cup_id)
FROM cup_id
)
)