Hi,
Meinst du vielleicht eine Gruppierung und Anwendung von Aggregatfunktionen?
Ja.
Na dann Gruppiere und wende die gewünschten Aggregatfunktionen an.
Ob es was zu optimieren gibt, zeigt dir dann EXPLAIN.
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]