Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incompatibility with VFP 9
Message
 
 
À
14/01/2005 11:55:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00977235
Message ID:
00977242
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>>It's documented change in the SQL Engine behavior: ORDER BY clause cannot include field that it's not in the field list if DISTINCT is used. You can add OrderMain to the field list.
SELECT DISTINCT Numero, OrderMain FROM Temp ORDER BY OrderMain INTO CURSOR Temp2
>
>By doing this, I have no bug. But, the SQL result is double and that fakes the result I need to achieve.

Woud this work?
<pre>SELECT Numero, MAX(OrderMain) SortOrd FROM Temp ;
GROUP BY Numero ;
ORDER BY SortOrd ;
INTO CURSOR Temp2
If it doesn't, can you provide more info about data you're processing and result you want.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform