Registriert seit: 18. Nov 2005
Ort: Ratingen
945 Beiträge
Delphi XE2 Professional
|
Re: UNION ALL -> Problem beim Sortieren
22. Jan 2008, 14:10
Versuch doch mal folgendes:
SQL-Code:
Select * FROM
(
SELECT 1 as DescriptionNumber, Description1 as Description
FROM Description
WHERE
...
UNION ALL
SELECT 2 as DescriptionNumber, Description2 as Description
FROM Description
WHERE
...
)
ORDER BY Description ASC
|