server/scripts/register/races.sql

11 lines
374 B
MySQL
Raw Normal View History

2001-12-30 12:26:56 +01:00
select races.name Rasse, count(*) Anmeldungen
from races, subscriptions, users
where races.race=subscriptions.race and subscriptions.user=users.id
group by races.race;
select games.name Spiel, count(*) Anmeldungen
from games, subscriptions, users
where subscriptions.game=games.id and subscriptions.user=users.id
group by game;