Also hier ist die Tabelle bg_towns

Hier die
bg_player

Hier das Resultat inkl. query.

Resultat sollte aber sein:
Der schon gefundene Datensatz+
tw.id 13, 14 und 15 mit member jeweils = 0



SELECT date_format( since, '%d.%m.%Y' ) AS datum, count( us.id )
S member, tw.name, tw.tax, tw.type, tw.des FROM bg_towns AS tw
LEFT JOIN bg_player AS us USING ( id) WHERE us.world = '3' AND
tw.loc = '3' GROUP BY tw.name ORDER BY tw.name ASC;
SELECT date_format(since,'%d.%m.%Y')AS datum, count( us.id ) as
member, tw.name, tw.tax, tw.type, tw.des FROM bg_towns AS tw,
bg_player AS us WHERE us.town = tw.id AND us.world = '3' AND
tw.loc = '3' GROUP BY tw.name, tw.type, tw.tax ORDER BY
tw.name ASC;
Einen Kommentar schreiben: