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