Halihallo
jedoch möchte ich den Durchscnitt aller Werta haben, bei denen 'anz' nicht 999 ist. Wie mache ich das?
Dies habe ich bereits versucht
mysql_query("select avg(anz where anz != '999') from at_data");
mysql_query("select avg(anz) where anz != '999' from at_data");
Was wär mit:
SELECT AVG(anz) FROM at_data WHERE ant<>'999'???
Auf die Struktur des SELECT-Statements achten!
Viele Grüsse
Philipp