Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with an expression field
Message
From
30/06/2001 13:04:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Working with an expression field
Miscellaneous
Thread ID:
00525611
Message ID:
00525611
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform