I using an ORDER BY
clause in SAP HANA:
SELECT a
FROM (
SELECT 'r' AS A FROM DUMMY
UNION
SELECT 'V' FROM DUMMY
UNION
SELECT 'a' FROM DUMMY
UNION
SELECT 'A' FROM DUMMY
) a
ORDER BY A
In SAP HANA the result is:
A |
---|
A |
V |
a |
r |
But when running in SQL Server the result is:
A |
---|
a |
A |
r |
V |
Why is this ordering different? Can we access and see this setting at the database level in SAP HANA? How can I get the same sorting in HANA as I am getting in SQL Server?