How can I use the ntile
ranking function without specifying the number to divide each partition by and instead assign each partition an incrementing number?
I want to group items that have a subset of fields with the same values and then flag them all with the same number such that each group's number increments by one in sorted order.