Sven Rautenberg: MYSQL select DISTINCT über mehrere Spalten

Beitrag lesen

Moin!

nun bräuchte ich aber irgendwas wo für jedes jahr alle vorhandenen monate ausgegeben werden.
funktioniert DISTINCT jahr, monat?
oder muss ich 2 abrfragen für jahr und dann monat verschachteln?

Was hälst du von "GROUP BY"?

- Sven Rautenberg

--
Among the maxims on Lord Naoshige's wall, there was this one: "Matters of great concern should be treated lightly."
Master Ittei commented, "Matters of small concern should be treated seriously."
(Hagakure: The Way of the Samurai)