Oracle SQL-按列值和数量对分区数据集进行分区,然后从每个分区中检索第一行和最后一行 [英]Oracle SQL - Partition dataset by column value and quantity, then retrieve first and last rows from each partition