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,10 @@
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
)
)