Contents

ORDER BY Oracle vs. Microsoft SQL

ORDER BY Oracle vs. Microsoft SQL
Contents

Like you would think ORDER BY is the same in Oracle as in the Microsoft environment, it isn’t. It depends on the Collation of the database. In the following example you see, that two manually added text in Oracle and Microsoft don’t order the same. After I added the Collation for SQL_Latin1_General_CP850_BIN2, it ordered the same.

ORDER BY Oracle:

/blog/order-by-oracle-vs-microsoft-sql/images/Order_by_Oracle1.png

ORDER BY Microsoft - normal and with collation:

/blog/order-by-oracle-vs-microsoft-sql/images/Order_by_Microsoft1.png
Discuss on Twitter   |