Einzelnen Beitrag anzeigen

Blup

Registriert seit: 7. Aug 2008
Ort: Brandenburg
1.429 Beiträge
 
Delphi 10.4 Sydney
 
#13

Re: [Anfägerfrage] wofür ist Group By gut?

  Alt 7. Aug 2009, 07:12
Zitat von p80286:
Zitat von Blup:
Die Feldliste im Select muss nicht alle Felder aus dem GroupBy enthalten.
Ob das sinnvoll ist, ist eine andere Frage.
Äh warum? Wodurch ist das begründet?
Wie begründet?

SQL-Code:
select a
from tabelle
group by a, b, c
Zitat von p80286:
Hier gibt's Mecker:
SQL-Code:
select substr(coddos,1,1),count(idedos)
from tabdos
where substr(coddos,1,1)='H'
Gehts hier nicht um group by?
  Mit Zitat antworten Zitat