select 
    a.today 日期,
    min(a.count) 最小值,
    max(a.count) 最大值
from 
    table a 
where 
    a.日期=你的日期 
group by 
    a.today 楼主是这个意思吗?

解决方案 »

  1.   

    select * from table where today =(select max(today) from table)
      

  2.   

    哦,漏掉和了
    select today,count(*) from table 
    where today =(select max(today) from table)
    group by today
      

  3.   

    update a_czy a
    set a.xm = (select xm from b_czy b where a.czdh = b.czdh);那为什么上面这条语句报错说:
    SQLWKS> update a_czy a
         2> set a.xm = (select xm from b_czy b where a.czdh = b.czdh);
    ORA-01407: 无法更新 ("APPUSR"."A_CZY"."XM") 为 NULLa_czy 跟 b_czy 的表结构完全一样,只是数据不同!
    而且b_czy.xm字段没有一条记录为空或者空格!
      

  4.   

    select today, max(count) from theTable group by today
      

  5.   

    SELECT MAX(aaa) FROM (SELECT today,SUM(count) aaa FROM yourtable GROUP BY today)
      

  6.   

    同意 bobdai(bobdai) 的写法