Find the maximum and minimum values within Oracle_group

In the query area, the maximum and minimum age

SELECT a.aac001,
       a.aac002,
       a.aac003,
       min(aac006) over(partition by aab034) "minage",
       aac006,
       max(a.aac006) over(partition by aab034) "maxage"
  FROM ac01 a
 order by a.aac006;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326308692&siteId=291194637