L
lovelovedelphi
Unregistered / Unconfirmed
GUEST, unregistred user!
在数据表sheet1.db中包含有几个字段:MeasDate(测量时间,格式如2001-12-9),
Station(测量站点),GNum(数量)现在要求写出每个站点每个月的数量平均的
sql语句(要求输出字段是年月,站点,平均数量),以便给query部件的sql属性赋值。
database是paradox
ps:我写了下面的语句(但把年月分为两个个字段输出)
select station,EXTRACT(YEAR FROM measDate) as MeasYear ,
EXTRACT(month FROM measDate) as Measmonth,avg('GNum')
from sheet1 group by EXTRACT(YEAR FROM measdate),
EXTRACT(month FROM measdate),station
出错为:cabability not supported
Station(测量站点),GNum(数量)现在要求写出每个站点每个月的数量平均的
sql语句(要求输出字段是年月,站点,平均数量),以便给query部件的sql属性赋值。
database是paradox
ps:我写了下面的语句(但把年月分为两个个字段输出)
select station,EXTRACT(YEAR FROM measDate) as MeasYear ,
EXTRACT(month FROM measDate) as Measmonth,avg('GNum')
from sheet1 group by EXTRACT(YEAR FROM measdate),
EXTRACT(month FROM measdate),station
出错为:cabability not supported