ntile ( num_buckets integer ) → integerReturns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.
Functions / Window Functions
ntile
Read the PG 18 manualReturns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.
Reading PG 18current·documented in 19 of 27 versions, 8.4 to 20
Signatures & examples
Definition snapshot: b7bd9cda · English manual source