Einzelnen Beitrag anzeigen

Dax
(Gast)

n/a Beiträge
 
#2

Re: Count(...) mehrerer Tabellen in EINER SQL-Anweisung

  Alt 12. Jun 2007, 21:07
Wie wärs damit?
SQL-Code:
select count(distinct personen.id) as personenzahl, count(distinct bilder.id) as bilderzahl, count(distinct kategorien.id) as kategorienzahl
from personen, bilder, kategorien
  Mit Zitat antworten Zitat