select x.a,x.b.y.c.y.d from 
(select max(最大值) as a ,max(发生时刻) as b  from 表 group by 最大值) x ,(select min(最小值) as c ,min(发生时刻) as d from 表 group by 最大值)

解决方案 »

  1.   

    Select * from 
    (select max(最大值) as a ,max(发生时刻) as b  from 表 group by 最大值) t1,
    (select min(最小值) as c ,min(发生时刻) as d from 表 group by 最大值) t2
      

  2.   

    select (select max(最大值),发生时刻 from 表),(select min(最小值),发生时刻 from 表)
    from 表OR:select (select max(最大值) from 表),
           (select 发生时刻 from 表 where 最大值=(select max(最大值) from 表)),
           (select min(最小值), from 表),
           (select 发生时刻 from 表 where 最大值=(select max(最小值) from 表))
    from 表
      

  3.   

    SELECT top 1 a.itemcount1,a.occurtime1,b.itemcount2,b.occurtime2
    FROM table1 a, table1 b
    where (a.itemcount1 = (select max(itemcount1) from table1 ))
    and (b.itemcount2 = (select min(itemcount2) from table1 ))