Hi,
ich würde eine zusätzliche Sortierkennung mit in die Abfrage aufnehmen (genaue Syntax bitte im Manual nachschlagen):
SELECT <spalten>, IF(startdatum=enddatum, 0, 1) AS sortierung
FROM...
WHERE...
ORDER BY sortierung, <sonstige sortierung>
MfG
Rouven
--
-------------------
Death is nature's way of telling you to slow down.
-------------------
Death is nature's way of telling you to slow down.