Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of a SQL on a SUM column
Message
De
07/04/2001 16:20:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Order of a SQL on a SUM column
Divers
Thread ID:
00493266
Message ID:
00493266
Vues:
56
How come on the following SQL:
SELECT NOMEMBER2,SUM(POINT) AS POINT FROM POINT;
 GROUP BY 1 ORDER BY POINT DESCENDING INTO CURSOR TEMP
I would end up with a sort with the following values in my POINT column: 10, 10, 2, 2, 12?

The record with 12 as the POINT value should be ranked 1st.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform