This solution also uses keep , but val and kind can also be simply calculated for each group without a subquery: select min(id) keep(dense_rank first order ...
確定! 回上一頁