Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Order by incorrect
Message
De
28/03/2005 14:13:03
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00999498
Message ID:
00999510
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform