Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with an expression field
Message
De
30/06/2001 13:04:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Working with an expression field
Divers
Thread ID:
00525611
Message ID:
00525611
Vues:
44
Is there a way in one SQL to obtain a calculated field based on an expression field?

The following shows SumRate/TotRate in the SQL syntax. However, this doesn't work as the fields don't exist. How can I reformulate that line to make it work?
SELECT TOP 100 SUM(RATE) AS SumRate,COUNT(*) AS TotRate,SumRate/TotRate AS RATING,NOENTRY FROM RATING;
 WHERE NOCONTENT=tnNoContent GROUP BY NOENTRY ORDER BY RATING DESCENDING INTO CURSOR RatingTemp
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