forked from github/server
kleine änderung an der ausgabe
This commit is contained in:
parent
0e359158ea
commit
0f28866c0d
|
@ -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
|
from users u, transactions t, subscriptions s
|
||||||
where u.id=t.user and u.id=s.user
|
where u.id=t.user and u.id=s.user
|
||||||
and u.status!='CONFIRMED'
|
|
||||||
and s.status='ACTIVE'
|
and s.status='ACTIVE'
|
||||||
GROUP BY u.id
|
GROUP BY s.faction
|
||||||
HAVING SUM(t.balance)<2.5;
|
HAVING Kontostand<2.5;
|
||||||
|
|
Loading…
Reference in New Issue