是这样吗
select 地区,MAX(FData) 最大值,MIN(FData) 最小值
from 表
where 地区 in (地区1,地区2)
and Dttime >='2010-01-01'
and Dttime <='2010-10-01'
group by 地区
select 地区,MAX(FData) 最大值,MIN(FData) 最小值
from 表
where 地区 in (地区1,地区2)
and Dttime >='2010-01-01'
and Dttime <='2010-10-01'
group by 地区
from 表
where 地区 in ('地区'1,'地区2')
and Dttime >='2010-01-01'
and Dttime <='2010-10-01'
group by name
http://bbs.csdn.net/topics/390698646