Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Order By in a Union
Message
 
 
To
05/05/2009 13:22:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01397707
Message ID:
01397992
Views:
68
>it is a bug.
>
>the origin of this bug is into this simple example:
>
>CREATE CURSOR bb (x i)
>INSERT INTO bb VALUES (3)
>INSERT INTO bb VALUES (1)
>SELECT -X AS X FROM bb ORDER BY X
>
>* return
>* -1
>* -3
>
>
>on MSSQL and others engines the correct result it is:
>
>CREATE TABLE #bb (x iNT)
>INSERT INTO #bb VALUES (3)
>INSERT INTO #bb VALUES (1)
>SELECT -X AS X FROM #bb ORDER BY X
>DROP TABLE #bb
>
>-- -3
>-- -1
>
>
Thanks for the explanation, Fabio.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform