kleine änderung an der ausgabe

This commit is contained in:
Enno Rehling 2002-03-31 07:47:18 +00:00
parent 0e359158ea
commit 0f28866c0d
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
select distinct u.id ID, left(concat(firstname,' ',lastname, ' <',email,'>'),43) Name, sum(t.balance) Kontostand
select distinct u.id ID, s.faction Partei, left(concat(firstname,' ',lastname, ' <',email,'>'),43) Name, sum(t.balance) Kontostand
from users u, transactions t, subscriptions s
where u.id=t.user and u.id=s.user
and u.status!='CONFIRMED'
and s.status='ACTIVE'
GROUP BY u.id
HAVING SUM(t.balance)<2.5;
GROUP BY s.faction
HAVING Kontostand<2.5;