After oracle performs grouping, take out the first few pieces of data in each group

 

SELECT *   

FROM   ( SELECT  grouped field names,    

                            ROW_NUMBER() OVER(PARTITION  BY  grouped field name  ORDER  BY  sorted field name)  AS  RN   

                  FROM  table name)   

WHERE  RN <= 10 After grouping, the first few pieces of data

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327010483&siteId=291194637