CodePudding user response:
E.g.select * from (select *, row_number () over (partition by type, the order by the date) as an RN from tabName) as T where RN<=10;
CodePudding user response:
E.g.select * from (select *, row_number () over (partition by type, the order by the date) as an RN from tabName) as T where RN<=10;