Forum: Cross-Platform-Entwicklung
iOS
by himitsu,
17. Mär 2014
Ist das jetzt der unveränderte Original-Code?
Dann ist das ' schonmal falsch.
Forum: Cross-Platform-Entwicklung
iOS
by himitsu,
16. Mär 2014
Kommt drauf an, was man zählen will.
SELECT count(*) AS Datensätze, count(Feld) AS NichtLeer FROM Tabelle
count(*) zählt alle Datensätze und count(Feld) zählt nur mit, wenn etwas in "Feld" drin ist. (Feld IS NOT NULL)
Ich glaub das GROUP BY könnte man auch weglassen, da bestimmt schon über das Count gruppiert zusammengefasst wird und es sowieso nur noch das Feld "teamA" gibt, welches...