約5つの組合からの質問があります。最後に、DateTimeフィールドで注文があります(したがって、私は100%間違いなくvarcharで注文していません)-そして、何らかの理由で注文が台無しになっているようです、何かアイデアはありますか?識別可能なパターンもありません:(
SELECT a, b, c, DateField
FROM whatever
UNION
SELECT a, b, c, DateField
FROM whatever
UNION
SELECT a, b, c, DateField
FROM whatever
Order By convert(DateTime, DateField, 111) -- The convert is just to make doubly sure about the data type