Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Order by incorrect
Message
From
28/03/2005 14:13:03
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00999498
Message ID:
00999510
Views:
28
>This is because your aliases. To fix it, use
Order by x
>
>
This not fix it, this is a workaround only.

But, on next code it is out of game:
CREATE TABLE #saleshist (sales INT)

INSERT INTO #saleshist VALUES (10)
INSERT INTO #saleshist VALUES (1)

-- Bug Next order column 1, now found a way for set the result order with  #saleshist.sales
SELECT sales%10 as sales FROM #saleshist ORDER BY #saleshist.sales

DROP TABLE #saleshist
Previous
Reply
Map
View

Click here to load this message in the networking platform