On Thu, 28 Aug 2003 07:38:57 -0400, SRam wrote:
Quote:
I always get an error " virtual column must have explicit name"
I wrote a query to execute and store result in another table..I query does
sum operation on fields with related keys.... |
You need to name the virtual columns created by the SUM aggregation function
using a column alias, ala:
select colone, coltwo, SUM( colthree ) AS sum_of_three
from mytable
INTO TEMP my_temp_table;
This is because the corresponding column in the temp table needs a column name.
When you select from the temp table use the alias to identify the column that
resulted from the aggregation (SUM).
Art S. Kagel